Skip to main content

widget-periodictable: A Interactive Perodic Table in Jupyter

PyPI version Binder screenshot comparison

demo

Installation & usage

pip install widget-periodictable

For usage examples, see examples/.

Development

Install the python code:

pip install -e .[dev]

You then need to install the JavaScript dependencies and run the development server.

npm install
npm run dev

Open the example notebook in JupyterLab, VS Code, or your favorite editor to start developing. Changes made in js/ will be reflected in the notebook.

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

screenshot comparison

The screenshot comparison test will generate images of the widget using selenium and chrome-driver, and compares them to the reference image in test/widget-sample.png.

To update the reference image: download the generated image from the Github Workflow step called "Upload screenshots".

How to cite

When using the content of this repository, please cite the following two articles:

  1. D. Du, T. J. Baird, S. Bonella and G. Pizzi, OSSCAR, an open platform for collaborative development of computational tools for education in science, Computer Physics Communications, 282, 108546 (2023). https://doi.org/10.1016/j.cpc.2022.108546

  2. D. Du, T. J. Baird, K. Eimre, S. Bonella, G. Pizzi, Jupyter widgets and extensions for education and research in computational physics and chemistry, Computer Physics Communications, 305, 109353 (2024). https://doi.org/10.1016/j.cpc.2024.109353

Acknowledgements

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

Release files for widget-periodictable 4.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for widget-periodictable 4.2.1
File Size Uploaded
widget_periodictable-4.2.1.tar.gz 8.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for widget-periodictable 4.2.1
File Interpreter ABI Platform
widget_periodictable-4.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 17.7 kB

Release files / widget_periodictable-4.2.1.tar.gz

Download URL widget_periodictable-4.2.1.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a62ce40f5eca0f63707395940eed65a47fbcf4cb58d3c88bcd4bbe540418d7b8
BLAKE2b-256 checksum
How to use checksums
09f70a7b3335832e41e36b00944e9ba1ef8ea17dc985ef6481570607a1ac44d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release files / widget_periodictable-4.2.1-py3-none-any.whl

Download URL widget_periodictable-4.2.1-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
466055cf29d15dfee3fb66c6461b532f3c662c0ebbda6b9e03cab487b1aa6630
BLAKE2b-256 checksum
How to use checksums
4d6aee457b9f911d246ed4d55465649f8ca4de15468e0be97183a5ba551a493b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Release history Release notifications | RSS feed

This release

4.2.1 This release

2 release files

4.1.3

2 release files

4.1.2

2 release files

4.1.1

2 release files

4.1.0

2 release files

4.0.5

2 release files

3.1.1

2 release files

3.1.0

2 release files

3.0.0

2 release files

2.1.5

2 release files

2.1.4

2 release files

2.1.3

2 release files

2.1.2

2 release files

2.1.1

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.4.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page