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.8.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

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

Hashes for ipymolstar-0.0.8.tar.gz
Algorithm Hash digest
SHA256 6fcd84b1fee52ccddeb853212ee22783978bf254b0e3b49480b4828e2214d11d
MD5 91cff66fc0d845fd777b6e62d6c711d0
BLAKE2b-256 6c6622aa68d075587f6211f717ed4ece47822063359ad0a08e1b2ba2c0c106b0

See more details on using hashes here.

Provenance

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

Publisher: pypi_main.yml on Jhsmit/ipymolstar

Attestations:

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

Hashes for ipymolstar-0.0.8-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8f5c8e949266e907c94ec39f9fa3fbaeeb293e600d29addbd00c7f5fd437f82f
MD5 cc601a5d5a73b15e364cc2b655581a6a
BLAKE2b-256 465699f8f263b9bef6e5bdbf1b5195596bc87e0c6df1ce7e174ff32ea0b93dfc

See more details on using hashes here.

Provenance

The following attestation bundles were made for ipymolstar-0.0.8-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