No project description provided
Project description
ipymolstar
Live Demos
Give ipymolstar
a spin without even installing python!
- Try it in jupyter lab via JupyterLite 🌍🚀
- Explore the solara ☀️ demo application on Ploomber-cloud ⛅
- Grab a cup and play with the solara app demo code in PyCafe ☕
- Upload your Alphafold3 .zip result and view plddt or chain colors in the
solarafold
result viewer on huggingface 🤗
Installation
pip install ipymolstar
Use
from ipymolstar import PDBeMolstar
view = PDBeMolstar(molecule_id='1qyn', theme='light', hide_water=True)
view
Loading local data, hiding the buttons:
from pathlib import Path
fpth = Path().resolve() / 'assets' / '6vsb.bcif'
custom_data = {
'data': fpth.read_bytes(),
'format': 'cif',
'binary': True,
}
view = PDBeMolstar(
custom_data=custom_data,
hide_controls_icon=True,
hide_expand_icon=True,
hide_settings_icon=True,
hide_selection_icon=True,
hide_animation_icon=True,
hide_water=True,
hide_carbs=True,
)
view
See the example notebook for more advanced usage. Solara example code can be found here
Cite
ipymolstar
uses anywidget to create a widget based on the PDBe integration of Mol*.
When using ipymolstar
, please cite:
David Sehnal, Sebastian Bittrich, Mandar Deshpande, Radka Svobodová, Karel Berka, Václav Bazgier, Sameer Velankar, Stephen K Burley, Jaroslav Koča, Alexander S Rose: Mol* Viewer: modern web app for 3D visualization and analysis of large biomolecular structures, Nucleic Acids Research, 2021; 10.1093/nar/gkab31.
See also the RCSB citation policies for additional citation information.
Development
Creating a new release
- update
__version__
in__init__.py
- create a new release on GitHub, choose as tag 'v' +
__version__
; ie 'v0.0.3' - GitHub actions should automatically deploy to PyPi
Hot reloading
To enable anywidget hot reloading, you need to set th env var ANYWIDGET_HMR
to 1.
Windows:
set ANYWIDGET_HMR=1
jupyter lab
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
Built Distribution
File details
Details for the file ipymolstar-0.0.8.tar.gz
.
File metadata
- Download URL: ipymolstar-0.0.8.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fcd84b1fee52ccddeb853212ee22783978bf254b0e3b49480b4828e2214d11d |
|
MD5 | 91cff66fc0d845fd777b6e62d6c711d0 |
|
BLAKE2b-256 | 6c6622aa68d075587f6211f717ed4ece47822063359ad0a08e1b2ba2c0c106b0 |
Provenance
The following attestation bundles were made for ipymolstar-0.0.8.tar.gz
:
Publisher:
pypi_main.yml
on Jhsmit/ipymolstar
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
ipymolstar-0.0.8.tar.gz
- Subject digest:
6fcd84b1fee52ccddeb853212ee22783978bf254b0e3b49480b4828e2214d11d
- Sigstore transparency entry: 149940624
- Sigstore integration time:
- Predicate type:
File details
Details for the file ipymolstar-0.0.8-py2.py3-none-any.whl
.
File metadata
- Download URL: ipymolstar-0.0.8-py2.py3-none-any.whl
- Upload date:
- Size: 11.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f5c8e949266e907c94ec39f9fa3fbaeeb293e600d29addbd00c7f5fd437f82f |
|
MD5 | cc601a5d5a73b15e364cc2b655581a6a |
|
BLAKE2b-256 | 465699f8f263b9bef6e5bdbf1b5195596bc87e0c6df1ce7e174ff32ea0b93dfc |
Provenance
The following attestation bundles were made for ipymolstar-0.0.8-py2.py3-none-any.whl
:
Publisher:
pypi_main.yml
on Jhsmit/ipymolstar
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
ipymolstar-0.0.8-py2.py3-none-any.whl
- Subject digest:
8f5c8e949266e907c94ec39f9fa3fbaeeb293e600d29addbd00c7f5fd437f82f
- Sigstore transparency entry: 149940622
- Sigstore integration time:
- Predicate type: