Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoes committed Oct 23, 2023
1 parent e9187d2 commit bcf96d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "3dmol",
"version": "2.0.5",
"version": "2.0.6",
"description": "JavaScript/TypeScript molecular visualization library",
"repository": {
"type": "git",
Expand Down
5 changes: 2 additions & 3 deletions py3Dmol/py3Dmol/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class view(object):
the exception that the functions all return None.
http://3dmol.org/doc/GLViewer.html
'''
def __init__(self,query='',width=640,height=480,viewergrid=None,data=None,style=None,linked=True,options=dict(),js='https://cdnjs.cloudflare.com/ajax/libs/3Dmol/2.0.4/3Dmol-min.js'):
def __init__(self,query='',width=640,height=480,viewergrid=None,data=None,style=None,linked=True,options=dict(),js='https://cdnjs.cloudflare.com/ajax/libs/3Dmol/2.0.5/3Dmol-min.js'):
'''Create a 3Dmol.js view.
width -- width in pixels of container
height -- height in pixels of container
Expand All @@ -73,8 +73,7 @@ def __init__(self,query='',width=640,height=480,viewergrid=None,data=None,style=
if type(height) == int:
height = '%dpx'%height
self.startjs = '''<div id="%s" style="position: relative; width: %s; height: %s;">
<p id="%s" style="background-color:#ffcccc;color:black">You appear to be running in JupyterLab (or JavaScript failed to load for some other reason). You need to install the 3dmol extension: <br>
<tt>jupyter labextension install jupyterlab_3dmol</tt></p>
<p id="%s" style="background-color:#ffcccc;color:black">3Dmol.js failed to load for some reason. Please check your browser console for error messages.<br></p>
</div>\n''' % (divid,width,height,warnid)
self.startjs += '<script>\n'
self.endjs = '</script>'
Expand Down

0 comments on commit bcf96d8

Please sign in to comment.