Skip to main content

A jupyter widget which allows users to implement small python functions dynamically and interactively.

Project description

widget-code-input

PyPI version Binder widget test screenshot comparison

A widget to allow input of a python function, with syntax highlighting.

Installation

You can install using pip:

pip install widget_code_input

Releasing and publishing a new version

In order to make a new release of the library and publish to PYPI, run

bumpver update --major/--minor/--patch

This will

  • update version numbers, make a corresponding git commit and a git tag;
  • push this commit and tag to Github, which triggers the Github Action that makes a new Github Release and publishes the package to PYPI.

Github workflow testing

widget test

If the widget test fails, it indicates there is something wrong with the code, and the widget is NOT being displayed correctly in the test.

screenshot comparison

If the widget test passes but the screenshot comparison fails, it indicates the appearance of the widget is different from the previous version. In this case, you'll need to manually download the artifact from the widget test and use it to replace the widget-sample.png figure in the test folder.

Acknowledgements

We acknowledge support from the EPFL Open Science Fund via the OSSCAR project.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

widget_code_input-4.0.12.tar.gz (160.2 kB view details)

Uploaded Source

Built Distribution

widget_code_input-4.0.12-py3-none-any.whl (162.3 kB view details)

Uploaded Python 3

File details

Details for the file widget_code_input-4.0.12.tar.gz.

File metadata

  • Download URL: widget_code_input-4.0.12.tar.gz
  • Upload date:
  • Size: 160.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for widget_code_input-4.0.12.tar.gz
Algorithm Hash digest
SHA256 d02b4e4ddb19c6a6235925a3018a15210eb8abce4d54c51023b51234df435f2b
MD5 9d6cb5efe53a9b9d2ea008dd909c2d98
BLAKE2b-256 564ddf10450f114a117dff5bace74941772f4e2af3d64d598f1a9920d5cfcceb

See more details on using hashes here.

File details

Details for the file widget_code_input-4.0.12-py3-none-any.whl.

File metadata

File hashes

Hashes for widget_code_input-4.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 c39f1af489cf092c03602b02d04721b0b6826cb68d186ce8a2e5bb117bdbdf28
MD5 f155e25c1df8678a610288d869553a67
BLAKE2b-256 f8c9d1a3cd26c723378acd854a1489a49beba4cb5156281c0cded49809f6bd3d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page