jupyter-jsmol
This is JSmol viewer widget which can be used in Jupyter Notebooks and JupyterLab
Installation
You can install using pip:
pip install jupyter_jsmol
Or if you use jupyterlab:
pip install jupyter_jsmol
jupyter labextension install @jupyter-widgets/jupyterlab-manager
If you are using Jupyter Notebook 5.2 or earlier, you may also need to enable the nbextension:
jupyter nbextension enable --py [--sys-prefix|--user|--system] jupyter_jsmol
Development Installation
Create a dev environment:
conda create -n jupyter-jsmol-dev -c conda-forge python pip nodejs yarn jupyter jupyterlab ipywidgets jupyter-packaging==0.7.9 ase pymatgen
conda activate jupyter-jsmol-dev
Install the python. This will also build the TS package.
# First install the python package. This will also build the JS packages.
pip install -e ".[test, examples]"
# Run the python tests. This should not give you a few successful example tests
py.test
When developing your extensions, you need to manually enable your extensions with the notebook / lab frontend. For lab, this is done by the command:
cd js
jupyter labextension develop --overwrite .
yarn run build
For classic notebook, you can run:
jupyter nbextension install --sys-prefix --symlink --overwrite --py jupyter_jsmol
jupyter nbextension enable --sys-prefix --py jupyter_jsmol
Note that the --symlink flag doesn't work on Windows, so you will here have to run
the install command every time that you rebuild your extension. For certain installations
you might also need another flag instead of --sys-prefix, but we won't cover the meaning
of those flags here.
How to see your changes
JavaScript:
If you use JupyterLab to develop then you can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the widget.
# Watch the source directory in one terminal, automatically rebuilding when needed
yarn run watch
# Run JupyterLab in another terminal
jupyter lab
After a change wait for the build to finish and then refresh your browser and the changes should take effect.
Python:
If you make a change to the python code then you will need to restart the notebook kernel to have it take effect.
Metadata
Release files for jupyter-jsmol 2022.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jupyter_jsmol-2022.1.0.tar.gz | 6.7 MB | Without provenance | Details for jupyter_jsmol-2022.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jupyter_jsmol-2022.1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for jupyter_jsmol-2022.1.0-py2.py3-none-any.whl |
Total release size: 14.1 MB
Release files / jupyter_jsmol-2022.1.0.tar.gz
| Download URL | jupyter_jsmol-2022.1.0.tar.gz |
|---|---|
| Size | 6.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6889b236dcd1eb69093ec1bc87ce352809c89a551214eada81186c2830c07c9a
|
|
BLAKE2b-256 checksum How to use checksums |
96685abc7b170bfdd30514ae21c20e27924058fce1245cb720a258410854a91a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
|
Release files / jupyter_jsmol-2022.1.0-py2.py3-none-any.whl
| Download URL | jupyter_jsmol-2022.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 7.4 MB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
dca3a232f98aa92739de8b7905765d22f325a2ba5d7a3a2f5b2374e88cc80471
|
|
BLAKE2b-256 checksum How to use checksums |
946eeb11b21d4a09420681f452d79b29f2854cbe68f3bb022dbc065ddeba54f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1
|
Security for jupyter-jsmol 2022.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.