[sagenb] 01/01: Display a big fat notice whenever someone tries to do a 3D plot

Ximin Luo infinity0 at debian.org
Mon Dec 5 01:31:41 UTC 2016


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository sagenb.

commit 45efb182ba3f67ea9ed559f150ee5efa8370cb69
Author: Ximin Luo <infinity0 at debian.org>
Date:   Mon Dec 5 02:31:24 2016 +0100

    Display a big fat notice whenever someone tries to do a 3D plot
---
 debian/patches/debian-jmol-paths.patch | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/debian/patches/debian-jmol-paths.patch b/debian/patches/debian-jmol-paths.patch
index 22d1631..6003651 100644
--- a/debian/patches/debian-jmol-paths.patch
+++ b/debian/patches/debian-jmol-paths.patch
@@ -55,3 +55,15 @@ Forwarded: not-needed
           {% endif %}
      {% endif %} 
      </div>
+--- a/sagenb/notebook/cell.py
++++ b/sagenb/notebook/cell.py
+@@ -2359,6 +2359,9 @@
+         script_name = os.path.join(self.url_to_self(), F)
+         return textwrap.dedent("""
+         <div id="sage_jmol_{id}" class="3DPlotDiv">
++            <div>3D plots do not work in SageNB because JSmol cannot currently be packaged for Debian. See the README.source of the jmol package for more details on this situation.</div>
++            <div> </div>
++            <div>3D plots do work from the SageMath command-line interface.</div>
+             <div id="loadJmol" style="display:none;">{id}</div>
+             <div id="sage_jmol_size_{id}" style="display:none;">{size}</div>
+             <div id="sage_jmol_img_{id}" style="display:none;">{image_name}.png?{timestamp}</div>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagenb.git



More information about the debian-science-commits mailing list