No project description provided
Project description
Jupyter widget: Brillouin zone visualizer
A Jupyter widget to plot the 1st Brillouin zone of crystals. It is based on the corresponding Javascript library: https://github.com/materialscloud-org/brillouinzone-visualizer
The primary input is a crystal structure, which is parsed by seekpath and the result is displayed by the Javascript widget using anywidget.
This repo is bootstrapped with npm create anywidget@latest
.
Installation & usage
pip install widget-bzvisualizer
For usage examples, see example/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 example/example.ipynb
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 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
File details
Details for the file widget_bzvisualizer-0.2.5.tar.gz
.
File metadata
- Download URL: widget_bzvisualizer-0.2.5.tar.gz
- Upload date:
- Size: 126.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1f4890407dbe1ec53dd52a90da8b8697cd2d80a8e1e80822e877c153d29ea71 |
|
MD5 | 4fc15c6960764b9259768a81a9b65a7b |
|
BLAKE2b-256 | 5bb66b6b7dcfe76ce6da0e06d412e9c26560726287822c57a769ba4d194797cf |
File details
Details for the file widget_bzvisualizer-0.2.5-py2.py3-none-any.whl
.
File metadata
- Download URL: widget_bzvisualizer-0.2.5-py2.py3-none-any.whl
- Upload date:
- Size: 127.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c503d26f4cd5bd2beaa0fd41c5ed7ff4d385a3254c6c96e221be0623f6823ed6 |
|
MD5 | 7375a737c6248d15a29476a384e63c47 |
|
BLAKE2b-256 | b9ecc1a6c57eb379f00eadf7f0ca156824d0de89b5213ed911de227d6fee4460 |