Skip to content
Snippets Groups Projects
Commit 7a654aba authored by Ronald Jäpel's avatar Ronald Jäpel
Browse files

Fix minor jupyter bugs

parent 38abe4a9
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,7 @@ import time ...@@ -3,6 +3,7 @@ import time
import os import os
from pathlib import Path from pathlib import Path
from cadetrdm.io_utils import wait_for_user
from ipylab import JupyterFrontEnd from ipylab import JupyterFrontEnd
import junix import junix
import nbformat as nbf import nbformat as nbf
...@@ -114,7 +115,7 @@ class Notebook: ...@@ -114,7 +115,7 @@ class Notebook:
print("Notebook was already executed in order.") print("Notebook was already executed in order.")
return return
else: else:
rerun_confirmed_bool = self.wait_for_user("Notebook was not in order, rerun notebook now?") rerun_confirmed_bool = wait_for_user("Notebook was not in order, rerun notebook now?")
if not rerun_confirmed_bool and not force_rerun: if not rerun_confirmed_bool and not force_rerun:
print("Aborting.") print("Aborting.")
return return
...@@ -133,7 +134,7 @@ class Notebook: ...@@ -133,7 +134,7 @@ class Notebook:
def convert_ipynb(self, output_dir, formats: list = None): def convert_ipynb(self, output_dir, formats: list = None):
if formats is None: if formats is None:
formats = ["html", ] formats = ["html", ] # ToDo add ipynb: does this work? or should I copy?
app = NbConvertApp() app = NbConvertApp()
app.initialize() app.initialize()
output_root_directory = os.path.join(output_dir, self.notebook_name) output_root_directory = os.path.join(output_dir, self.notebook_name)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment