Skip to main content

No project description provided

Project description

ipymolstar

image

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

ipymolstar-0.0.7.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

ipymolstar-0.0.7-py2.py3-none-any.whl (11.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file ipymolstar-0.0.7.tar.gz.

File metadata

  • Download URL: ipymolstar-0.0.7.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

Hashes for ipymolstar-0.0.7.tar.gz
Algorithm Hash digest
SHA256 6f5804b2692a357127b0c3dedeebb4e1a1c4afb0fdb8720be3b4f5d2aec66927
MD5 b94027699e569ff98046de209d94d6a5
BLAKE2b-256 329aa82ab7af6fd419bdc0904bc77445e35fdddce431aac006c4a2a2551555f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for ipymolstar-0.0.7.tar.gz:

Publisher: pypi_main.yml on Jhsmit/ipymolstar

Attestations:

File details

Details for the file ipymolstar-0.0.7-py2.py3-none-any.whl.

File metadata

  • Download URL: ipymolstar-0.0.7-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

Hashes for ipymolstar-0.0.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0690a9a6248e8d6969f6f1fc9c027764f5d29e1db3464c72fcdea0caaf34cdba
MD5 6fdea7763f7f79c2214ef3b6a4d69872
BLAKE2b-256 470a22dc8e06d575c31136510ff2d888bf9c7c79e37771eed1f9dcba71bf4faf

See more details on using hashes here.

Provenance

The following attestation bundles were made for ipymolstar-0.0.7-py2.py3-none-any.whl:

Publisher: pypi_main.yml on Jhsmit/ipymolstar

Attestations:

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