[Feature Request] Is there anyway to make py3Dmol to work using put_html? #668
Unanswered
ricardojdgferreira
asked this question in
Q&A
Replies: 1 comment
-
You can use from pywebio import output, start_server
import py3Dmol
def app():
viewer = py3Dmol.view(query='pdb:5WOG')
viewer.show()
html = viewer._make_html()
output.put_html(html)
if __name__ == '__main__':
start_server(app, port=8080) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Please move to Discussions - Feature Request for posting.
I have this code to embed py3Dmol viewer into web pages.
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!
Beta Was this translation helpful? Give feedback.
All reactions