diff --git a/src/sage/plot/plot3d/base.pyx b/src/sage/plot/plot3d/base.pyx index 222337345a7..e0c11914b8b 100644 --- a/src/sage/plot/plot3d/base.pyx +++ b/src/sage/plot/plot3d/base.pyx @@ -419,9 +419,9 @@ cdef class Graphics3d(SageObject): html = f.read() html = html.replace('SAGE_SCRIPTS', scripts) - options = dict((key, options[key]) for key in + js_options = dict((key, options[key]) for key in ['aspect_ratio', 'axes', 'axes_labels', 'decimals', 'frame']) - html = html.replace('SAGE_OPTIONS', json.dumps(options)) + html = html.replace('SAGE_OPTIONS', json.dumps(js_options)) html = html.replace('SAGE_BOUNDS', bounds) html = html.replace('SAGE_LIGHTS', lights) html = html.replace('SAGE_AMBIENT', ambient) diff --git a/src/sage/repl/rich_output/backend_ipython.py b/src/sage/repl/rich_output/backend_ipython.py index 52518bda39c..9323fb76d2c 100644 --- a/src/sage/repl/rich_output/backend_ipython.py +++ b/src/sage/repl/rich_output/backend_ipython.py @@ -588,7 +588,7 @@ def threejs_offline_scripts(self): sage: from sage.repl.rich_output.backend_ipython import BackendIPythonNotebook sage: backend = BackendIPythonNotebook() sage: backend.threejs_offline_scripts() - '\n...' + '\n - """.format(CDN_scripts) + """.format(CDN_scripts.replace('', r'<\/script>')) diff --git a/src/sage/repl/rich_output/display_manager.py b/src/sage/repl/rich_output/display_manager.py index 88d443ee876..f48527df8f9 100644 --- a/src/sage/repl/rich_output/display_manager.py +++ b/src/sage/repl/rich_output/display_manager.py @@ -715,7 +715,7 @@ def graphics_from_save(self, save_function, save_kwds, def threejs_scripts(self, online): """ - Return three.js script tags for the current backend. + Return Three.js script tags for the current backend. INPUT: @@ -728,7 +728,7 @@ def threejs_scripts(self, online): .. NOTE:: This base method handles ``online=True`` case only, serving CDN - script tags. Location of scripts for off-line usage is + script tags. Location of scripts for offline usage is backend-specific. EXAMPLES::