summaryrefslogtreecommitdiff
path: root/tbc/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'tbc/views.py')
-rwxr-xr-xtbc/views.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tbc/views.py b/tbc/views.py
index fd8fed3..0c75f96 100755
--- a/tbc/views.py
+++ b/tbc/views.py
@@ -605,11 +605,9 @@ def ConvertNotebook(request, notebook_path=None):
try:
template = path.split("/")[8:]
template = "/".join(template)+notebook_name+".html"
- print ("try")
return render_to_response(template, {})
except:
- os.popen("ipython nbconvert --to html "+path+notebook_name+".ipynb")
+ os.popen("ipython nbconvert --to html \""+path+notebook_name+".ipynb\"")
template = path.split("/")[8:]
template = "/".join(template)+notebook_name+".html"
- print ("except")
return render_to_response(template, {})