Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
sage.repl.display.jsmol_iframe: Adjust path to jsmol
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Nov 29, 2020
1 parent cbaf661 commit 2ca5328
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/repl/display/jsmol_iframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def __init__(self, jmol, path_to_jsmol=None, width='100%', height='100%'):
instance. The 3-d scene to show.
- ``path_to_jsmol`` -- string (optional, default is
``'/nbextensions/jsmol'``). The path (relative or absolute)
``'/nbextensions/jupyter_jsmol/jsmol'``). The path (relative or absolute)
where ``JSmol.min.js`` is served on the web server.
- ``width`` -- integer or string (optional, default:
Expand All @@ -124,7 +124,7 @@ def __init__(self, jmol, path_to_jsmol=None, width='100%', height='100%'):
self._jmol = jmol
self._zip = zipfile.ZipFile(io.BytesIO(self._jmol.scene_zip.get()))
if path_to_jsmol is None:
self._path = os.path.join('/', 'nbextensions', 'jsmol')
self._path = os.path.join('/', 'nbextensions', 'jupyter_jsmol', 'jsmol')
else:
self._path = path_to_jsmol
self._width = width
Expand Down

0 comments on commit 2ca5328

Please sign in to comment.