Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Theresa Pollinger
MoSIS
Commits
5bea055d
Unverified
Commit
5bea055d
authored
Apr 26, 2018
by
Tom Wiesing
Browse files
#blameTheresa
parent
f9a2dcbe
Changes
2
Hide whitespace changes
Inline
Side-by-side
interview_kernel/install.py
View file @
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
)
...
...
interview_kernel/interview_kernel.py
View file @
5bea055d
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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment