Commit 2b1b0455 authored by Theresa Pollinger's avatar Theresa Pollinger
Browse files

Merge branch 'master' of gl.kwarc.info:theresa_pollinger/MoSIS

parents 0d1d0d49 5bea055d
......@@ -9,7 +9,15 @@ from jupyter_client.kernelspec import KernelSpecManager
from IPython.utils.tempdir import TemporaryDirectory
from shutil import copyfile
kernel_json = Interview.kernel_json
kernel_json = {
"argv": [
sys.executable, "-m", "interview_kernel", "-f", "{connection_file}"],
"display_name": "MoSIS",
"language": "text",
"name": "interview_kernel"
}
def install_my_kernel_spec(user=True, prefix=None):
......@@ -42,7 +50,7 @@ def install_my_kernel_spec(user=True, prefix=None):
except Exception:
print('could not copy kernel.js, will not see initial message in notebook')
raise
#raise
print("Installing Jupyter kernel spec")
KernelSpecManager().install_kernel_spec(td, 'Interview', user=user, prefix=prefix)
......
from sys import executable
from os.path import join
#from pathlib import Path
......@@ -37,14 +36,6 @@ class Interview(MetaKernel):
'help_links': MetaKernel.help_links,
}
kernel_json = {
"argv": [
executable, "-m", "interview_kernel", "-f", "{connection_file}"],
"display_name": "MoSIS",
"language": "text",
"name": "interview_kernel"
}
banner = \
"""**Hello, """ + getpass.getuser() + """! I am MoSIS 1.0, your partial differential equations and simulations tool.**
Let's set up a model and simulation.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment