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.18.tar.gz (161.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

widget_code_input-4.0.18-py3-none-any.whl (163.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: widget_code_input-4.0.18.tar.gz
  • Upload date:
  • Size: 161.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for widget_code_input-4.0.18.tar.gz
Algorithm Hash digest
SHA256 f645e76ecaaec8fc871175f98e03286fa547acccb6e45429eeaaa25a9ba9d4a8
MD5 f70d2fb945cf1769da0cca1179136ada
BLAKE2b-256 0d943ca652fdd5e2b1fb80100a95898479d4ba30a44c2380e450c709f5ef32e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for widget_code_input-4.0.18-py3-none-any.whl
Algorithm Hash digest
SHA256 68fcf6831887746473fabbe4564a52e2dea6f352bb75629077c5b597dcb34f79
MD5 94e12bd5ff274006acb13ffd3f9b7152
BLAKE2b-256 0e5d807d966cbb8775a7fa8680d88200417f735020c83887ced3e9fb039da562

See more details on using hashes here.

Supported by

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