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

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: ipymolstar-0.0.6.tar.gz
  • Upload date:
  • Size: 8.8 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.6.tar.gz
Algorithm Hash digest
SHA256 d1553e4daaf28f65ff16f3f5350d134ef88dbd70a0845891a508559650ff4701
MD5 892807f1c4198f60a0dd2e3d03bc2d99
BLAKE2b-256 13ed8446768e7ba4446bfefe450e8aa62cdfde4137a9e3006de22043e5706d9b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ipymolstar-0.0.6-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.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c7a10a7519a9281891afadfa6504d75053aab03a815808adb252d685060b2186
MD5 0a7d5077939895e191909cda7fad507b
BLAKE2b-256 33ca1538e4d7a070c59c9e282d5560b3972a76caf05f9e56bff0d69cc7a6a449

See more details on using hashes here.

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