Skip to main content

A jupyter widget of the periodic table of elements.

Project description

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.

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_periodictable-4.2.1.tar.gz (8.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_periodictable-4.2.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file widget_periodictable-4.2.1.tar.gz.

File metadata

  • Download URL: widget_periodictable-4.2.1.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for widget_periodictable-4.2.1.tar.gz
Algorithm Hash digest
SHA256 a62ce40f5eca0f63707395940eed65a47fbcf4cb58d3c88bcd4bbe540418d7b8
MD5 4c03ce65e0a1c64ae276ec5d701edb92
BLAKE2b-256 09f70a7b3335832e41e36b00944e9ba1ef8ea17dc985ef6481570607a1ac44d7

See more details on using hashes here.

File details

Details for the file widget_periodictable-4.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for widget_periodictable-4.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 466055cf29d15dfee3fb66c6461b532f3c662c0ebbda6b9e03cab487b1aa6630
MD5 0fba5c9fa243f109b378068b8c5cfd8d
BLAKE2b-256 4d6aee457b9f911d246ed4d55465649f8ca4de15468e0be97183a5ba551a493b

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