diff --git a/package.json b/package.json index 9d8c1f3dc..ced76094f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "3dmol", - "version": "2.0.5", + "version": "2.0.6", "description": "JavaScript/TypeScript molecular visualization library", "repository": { "type": "git", diff --git a/py3Dmol/py3Dmol/__init__.py b/py3Dmol/py3Dmol/__init__.py index 2b8d23586..6e9a4d4d2 100644 --- a/py3Dmol/py3Dmol/__init__.py +++ b/py3Dmol/py3Dmol/__init__.py @@ -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 @@ -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 = '''
-

You appear to be running in JupyterLab (or JavaScript failed to load for some other reason). You need to install the 3dmol extension:
- jupyter labextension install jupyterlab_3dmol

+

3Dmol.js failed to load for some reason. Please check your browser console for error messages.

\n''' % (divid,width,height,warnid) self.startjs += ''