We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36858f5 commit 59614d1Copy full SHA for 59614d1
install/notebook_report.py
@@ -18,7 +18,7 @@
18
try:
19
notebook_path = sys.argv[1]
20
except IndexError:
21
- notebook_path = PATH_PREFIX + 'notebook.ipynb'
+ notebook_path = os.path.abspath(os.curdir) + 'notebook.ipynb'
22
with open(notebook_path, 'r') as f:
23
notebook = nbformat.read(f, as_version=4)
24
@@ -27,7 +27,10 @@
27
28
# Set up the export config
29
c = Config()
30
-c.LatexExporter.template_file = PATH_PREFIX + 'notebook_template.tplx'
+if os.path.exists('/share/notebook_template.tplx'):
31
+ c.LatexExporter.template_file = '/share/notebook_template.tplx'
32
+else:
33
+ c.LatexExporter.template_file = '/opt/onecodex/notebook_template.tplx'
34
35
notebook.metadata['vars'] = {
36
'trusted': True,
0 commit comments