Skip to main content

A Jupyter widget to plot band structure and density of states.

Project description

Jupyter widget: Band structure visualizer

PyPI version

A Jupyter widget to plot band structures and density of states. The widget is using the mc-react-bands Javascript package and is turned into a Jupyter widget with anywidget.

Installation & usage

pip install widget-bandsplot

For usage examples, see examples/example.ipynb.

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 examples/example.ipynb in Jupyter notebook or lab 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.

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_bandsplot-0.7.3.tar.gz (185.0 kB view details)

Uploaded Source

Built Distribution

widget_bandsplot-0.7.3-py3-none-any.whl (186.8 kB view details)

Uploaded Python 3

File details

Details for the file widget_bandsplot-0.7.3.tar.gz.

File metadata

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

File hashes

Hashes for widget_bandsplot-0.7.3.tar.gz
Algorithm Hash digest
SHA256 9d4d9e28f1ef7c9d5edee0ec24192775d5a9b5e31c398af796bb6da643708e18
MD5 53faf0a2f4a8259a0a1a01339e76dc48
BLAKE2b-256 a26b160e873abf4737e2732128ff1e3781257b65f57d604e0a8a5b37e0c02be9

See more details on using hashes here.

File details

Details for the file widget_bandsplot-0.7.3-py3-none-any.whl.

File metadata

File hashes

Hashes for widget_bandsplot-0.7.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0c7dc253fa4420ab191661fa849c4832a54becad32fd421ff9769eb893e8d6a9
MD5 575d6c5ccd690ca442ca8bc580308c96
BLAKE2b-256 efce67f09d3f714d3369359afad588ea1dbdc850decb57ad2ec3d4edf8d9434d

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