Commit c52de05c authored by Iliya Manolov's avatar Iliya Manolov

Added a JupyterLab process to the Jupyter software release.

parent 65c794dd
...@@ -39,6 +39,9 @@ eggs = ...@@ -39,6 +39,9 @@ eggs =
${seaborn:egg} ${seaborn:egg}
${statsmodels:egg} ${statsmodels:egg}
patsy patsy
# additional eggs for jupyterlab
jupyterlab
jupyterlab-launcher
interpreter = pythonjupyter interpreter = pythonjupyter
...@@ -69,6 +72,9 @@ scripts = ...@@ -69,6 +72,9 @@ scripts =
jupyter-nbextension jupyter-nbextension
jupyter-notebook jupyter-notebook
jupyter-serverextension jupyter-serverextension
jupyter-lab
jupyter-labextension
jupyter-labhub
initialization = initialization =
# https://github.com/ipython/ipython/issues/5420 # https://github.com/ipython/ipython/issues/5420
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
[instance-jupyter-notebook] [instance-jupyter-notebook]
filename = instance.cfg.in filename = instance.cfg.in
md5sum = a2116d236542e139aa446a6b88db3d28 md5sum = fe5f82427cad1a24c2396c1684b8c411
[jupyter-notebook-config] [jupyter-notebook-config]
filename = jupyter_notebook_config.py.jinja filename = jupyter_notebook_config.py.jinja
......
[buildout] [buildout]
parts = parts =
instance instance
instance-lab
jupyter_notebook jupyter_notebook
read-knowledge0 read-knowledge0
publish-connection-parameter publish-connection-parameter
...@@ -58,11 +59,13 @@ key_file = ${directory:etc}/jupyter_cert.key ...@@ -58,11 +59,13 @@ key_file = ${directory:etc}/jupyter_cert.key
[instance] [instance]
recipe = slapos.cookbook:wrapper recipe = slapos.cookbook:wrapper
jupyter-executable = {{ bin_directory }}/jupyter-notebook
port = ${instance-parameter:port}
command-line = command-line =
{{ bin_directory }}/jupyter-notebook ${:jupyter-executable}
--no-browser --no-browser
--ip=${instance-parameter:host} --ip=${instance-parameter:host}
--port=${instance-parameter:port} --port=${:port}
--port-retries=0 --port-retries=0
--certfile=${instance-parameter:cert_file} --certfile=${instance-parameter:cert_file}
--keyfile=${instance-parameter:key_file} --keyfile=${instance-parameter:key_file}
...@@ -76,6 +79,12 @@ environment = ...@@ -76,6 +79,12 @@ environment =
JUPYTER_RUNTIME_DIR=${directory:jupyter_runtime_dir} JUPYTER_RUNTIME_DIR=${directory:jupyter_runtime_dir}
LANG=C.UTF-8 LANG=C.UTF-8
[instance-lab]
<= instance
jupyter-executable = {{ bin_directory }}/jupyter-lab
wrapper-path = ${directory:service}/jupyter-lab
port = 8889
[jupyter-notebook-config] [jupyter-notebook-config]
<= dynamic-jinja2-template-base <= dynamic-jinja2-template-base
template = {{ jupyter_config_location }}/{{ jupyter_config_filename }} template = {{ jupyter_config_location }}/{{ jupyter_config_filename }}
...@@ -107,7 +116,7 @@ erp5_kernel_dir = ${:jupyter_kernel_dir}/ERP5 ...@@ -107,7 +116,7 @@ erp5_kernel_dir = ${:jupyter_kernel_dir}/ERP5
# This part is called like this because knowledge0.write uses the part name for # This part is called like this because knowledge0.write uses the part name for
# the section name in the config file. # the section name in the config file.
recipe = slapos.cookbook:zero-knowledge.write recipe = slapos.cookbook:zero-knowledge.write
password = password =
filename = knowledge0.cfg filename = knowledge0.cfg
[read-knowledge0] [read-knowledge0]
...@@ -153,4 +162,3 @@ context = ...@@ -153,4 +162,3 @@ context =
template = {{ custom_js_location }}/{{ custom_js_filename }} template = {{ custom_js_location }}/{{ custom_js_filename }}
rendered = ${directory:jupyter_custom_dir}/custom.js rendered = ${directory:jupyter_custom_dir}/custom.js
mode = 0744 mode = 0744
...@@ -71,6 +71,8 @@ ipython-genutils = 0.1.0 ...@@ -71,6 +71,8 @@ ipython-genutils = 0.1.0
ipywidgets = 6.0.0 ipywidgets = 6.0.0
jupyter-client = 5.0.0 jupyter-client = 5.0.0
jupyter-core = 4.3.0 jupyter-core = 4.3.0
jupyterlab = 0.26.3
jupyterlab-launcher = 0.3.1
matplotlib = 2.0.0 matplotlib = 2.0.0
mistune = 0.7.3 mistune = 0.7.3
nbformat = 4.3.0 nbformat = 4.3.0
......
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