# HG changeset patch
# User William Stein <wstein@gmail.com>
# Date 1307989431 25200
# Node ID 9bcc8e8103e791a534452e00e313ef78f99302bc
# Parent f4a3d511087a6e82bbccbc3903b412b5cd9e5a2d
Make jmol work with the new flask notebook.
diff --git a/sage/plot/plot3d/base.pyx b/sage/plot/plot3d/base.pyx
a
|
b
|
|
1126 | 1126 | |
1127 | 1127 | # We need a script to load the file |
1128 | 1128 | f = open(filename + '.jmol', 'w') |
1129 | | f.write('set defaultdirectory "%s"\n' % archive_name) |
| 1129 | if EMBEDDED_MODE: |
| 1130 | import sagenb |
| 1131 | path = "cells/%s/%s" %(sagenb.notebook.interact.SAGE_CELL_ID, archive_name) |
| 1132 | else: |
| 1133 | path = archive_name |
| 1134 | f.write('set defaultdirectory "%s"\n' %path) |
1130 | 1135 | f.write('script SCRIPT\n') |
1131 | 1136 | f.close() |
1132 | 1137 | |