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.19.tar.gz (161.3 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.19-py3-none-any.whl (163.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: widget_code_input-4.0.19.tar.gz
  • Upload date:
  • Size: 161.3 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.19.tar.gz
Algorithm Hash digest
SHA256 9e0eab246c20c71be210650a80f87c95c3652979b3fdea3c442c6b4286276fcf
MD5 faac036219c8b0e77f1c1360cfe00573
BLAKE2b-256 d7aa60161acf748797fda2380726d21b999e8100a7c9bd82d95eb5247a2e1ed4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for widget_code_input-4.0.19-py3-none-any.whl
Algorithm Hash digest
SHA256 022a3a80d2d51b4bf0c1c28cf112def5350d5fd90254e21c2872bc082bb1645a
MD5 1eb9476214dcf252b0ad69e48ce8e586
BLAKE2b-256 278cf5405d3ee440e0ac9b2c424803a77431d9baee396b7b6a8e03418d8442a7

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