Easy GUI Jupyter
Easy GUI Jupyter is a Python library that simplifies the creation of graphical user interfaces (GUIs) in Jupyter notebooks using ipywidgets. It provides a convenient way to add various types of widgets to your Jupyter notebooks, making it easier to interact with your code and visualize results.
Features
- Simplifies the creation of GUIs in Jupyter notebooks
- Supports a variety of widget types, including labels, buttons, text inputs, sliders, checkboxes, and dropdowns
- Allows saving and loading widget values to maintain user settings across sessions
- Provides a clean and intuitive API for adding and managing widgets
Installation
To install Easy GUI Jupyter, you can use pip:
pip install easy_gui_jupyter
Usage
Here's a simple example of how to use Easy GUI Jupyter in your Jupyter notebook:
from easy_gui_jupyter import EasyGUI
# Create an instance of EasyGUI
eg = EasyGUI()
# Add a text widget
eg.add_text("text", value="Hello, world!")
# Display the GUI
eg.show()
This will create a GUI with a single text widget displaying "Hello, world!".
You can add more widgets using the various add_* methods provided by the EasyGUI class. For example:
# Add an integer slider
eg.add_int_slider("int_slider", min=0, max=10, value=5)
# Add a checkbox
eg.add_checkbox("checkbox", value=True)
# Add a dropdown
options = ["Option 1", "Option 2", "Option 3"]
eg.add_dropdown("dropdown", options=options, value=options)
To access the values of the widgets, you can use the [] operator with the widget's tag:
# Get the value of the text widget
text_value = eg["text"].value
# Get the value of the integer slider
int_slider_value = eg["int_slider"].value
Saving and Loading Settings
Easy GUI Jupyter allows you to save and load widget values to maintain user settings across sessions. To enable this feature, set the remember_value parameter to True when adding a widget:
# Add a float slider with remembered value
eg.add_float_slider("float_slider", min=0.0, max=1.0, step=0.1, value=0.5, remember_value=True)
To save the current widget values, call the save_settings() method:
# Save the current widget values
eg.save_settings()
The widget values will be saved to a configuration file in the user's home directory.
Contributing
Contributions to Easy GUI Jupyter are welcome! If you find a bug, have a feature request, or want to contribute improvements, please open an issue or submit a pull request on the GitHub repository.
License
Easy GUI Jupyter is open-source software licensed under the MIT License.
Metadata
Release files for easy_gui_jupyter 2024.5.28
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| easy_gui_jupyter-2024.5.28.tar.gz | 4.8 kB | Without provenance | Details for easy_gui_jupyter-2024.5.28.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| easy_gui_jupyter-2024.5.28-py3-none-any.whl | Python 3 | none | any | Details for easy_gui_jupyter-2024.5.28-py3-none-any.whl |
Total release size: 10.3 kB
Release files / easy_gui_jupyter-2024.5.28.tar.gz
| Download URL | easy_gui_jupyter-2024.5.28.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a84ffb17d70f3efb37d6e7118b78aa584fe1ca42fe63b2887436a808d90d46f
|
|
BLAKE2b-256 checksum How to use checksums |
177988a4181c14e4bfe975e3f03cda2d88a5ed40411af64dcdb8bceec0d655e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.3 Darwin/23.5.0
|
Release files / easy_gui_jupyter-2024.5.28-py3-none-any.whl
| Download URL | easy_gui_jupyter-2024.5.28-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b83f2eb5de9dc860702d54c9ebedf6cbea3cc2840797807760da91c8f5826b74
|
|
BLAKE2b-256 checksum How to use checksums |
ab1a8891fddb627c58adaf90c090093c1479dfe4bdc91dfc5d320229502b42e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.3 Darwin/23.5.0
|
Security for easy_gui_jupyter 2024.5.28
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.