Skip to content

[Feature Request] Is there anyway to make py3Dmol to work using put_html? #666

Description

@ricardojdgferreira

Please move to Discussions - Feature Request for posting.

I have this code to embed py3Dmol viewer into web pages.

<script src="https://3Dmol.org/build/3Dmol-min.js"></script>     
<script src="https://3Dmol.org/build/3Dmol.ui-min.js"></script>     
 
<div style="height: 400px; width: 400px; position: relative;" class='viewer_3Dmoljs' data-pdb='2POR' data-backgroundcolor='0xffffff' data-style='stick' data-ui='true'></div>

I know that it sets the viewport (div), but I cannot seem to render anything inside it.
How can I make it to work (or is it something that can be implemented in PyWebIO)?

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions