Skip to main content

No project description provided

Project description

widget-code-input

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

Try it with Binder !

  • Simple usage of the widget code input

Binder

  • Impact distance of a projectile ( a exmaple for using the widget-code-input for a educational notebook )
  • Text for the exercise: Binder

  • The interactive exercise: Binder

Installation

You can install using pip:

pip install widget_code_input

Or if you use jupyterlab:

pip install widget_code_input
jupyter lab build

If you are using Jupyter Notebook 5.2 or earlier, you may also need to enable the nbextension:

jupyter nbextension enable --py [--sys-prefix|--user|--system] widget_code_input

There are seven different code themes can be chosen. They are "eclipse", "idea", "material", "midnight", "monokai", "nord" and "solarized". You can check the appearance of the code themes at:

https://codemirror.net/demo/theme.html

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

Uploaded Source

Built Distribution

widget_code_input-4.0.10-py2.py3-none-any.whl (238.7 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: widget_code_input-4.0.10.tar.gz
  • Upload date:
  • Size: 235.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for widget_code_input-4.0.10.tar.gz
Algorithm Hash digest
SHA256 f25b76629163f541c741c2becad49be851b56721f7425c0221a7cc34a00f1e63
MD5 ad18e094e6b2b84266ea2eebdeeaa934
BLAKE2b-256 cdc845e4ae9c9a8e31646c2454661700c67c1967e4993719a28223f3dfc1012e

See more details on using hashes here.

File details

Details for the file widget_code_input-4.0.10-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for widget_code_input-4.0.10-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7f971ff98ea670a99663435fb4b947be3114f48abb9c8b2260d301f6bb331c8d
MD5 5b11bf1aff16731e3d6369ea87d15caf
BLAKE2b-256 fced462e566e78abc54b29a53f74419340d4d21e5af6fd339399564378b6cabf

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