Skip to main content

A Gradio component designed for displaying an interactive gallery of 3D molecular structures.

Project description

gradio_molgallery3d

A Gradio component designed for displaying an interactive gallery of 3D molecular structures. It is designed to accept inputs consisting of RDKit objects.

Installation

This component can be installed through pip:

pip install gradio_molgallery3d

Example usage

import gradio as gr
from gradio_molgallery import MolGallery3D

gallery3d = MolGallery3D(columns=5, height=1000, label="3D Interactive Structures", automatic_rotation=True)

Features

  • When the automatic_rotation parameter is set to True, the molecular structures rotate automatically.
  • Clicking the right mouse button on the 3D structure allows you to download the image as a .png file.

Known Issues

  • Web browsers typically impose limits on the number of canvas objects that can be displayed on a single page, which may result in some structures not being drawn. The specific limitations vary depending on the browser. More details: [1, 2]

Information

For any questions and comments, contact Davide Rigoni.

Licenze

GPL-3.0

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

gradio_molgallery3d-1.1.0.tar.gz (256.9 kB view hashes)

Uploaded Source

Built Distribution

gradio_molgallery3d-1.1.0-py3-none-any.whl (249.5 kB view hashes)

Uploaded Python 3

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