A Jupyter widget to plot band structure and density of states.
Project description
Jupyter widget: Band structure visualizer
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 agit 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for widget_bandsplot-0.7.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c7dc253fa4420ab191661fa849c4832a54becad32fd421ff9769eb893e8d6a9 |
|
MD5 | 575d6c5ccd690ca442ca8bc580308c96 |
|
BLAKE2b-256 | efce67f09d3f714d3369359afad588ea1dbdc850decb57ad2ec3d4edf8d9434d |