Commit ffab0315 authored by Sebastian's avatar Sebastian

software/ipython_notebook: add renderjs-extension

parent f765d9d0
......@@ -5,7 +5,9 @@ parts =
erp5-kernel
kernel-json
custom-js
renderjs-symlink-nbextension
renderjs-symlink-nbconfig
renderjs-symlink-ipyextension
eggs-directory = {{ eggs_directory }}
develop-eggs-directory = {{ develop_eggs_directory }}
......@@ -69,7 +71,10 @@ command-line =
wrapper-path = ${directory:service}/ipython_notebook
parameters-extra = true
# Explicitly define IPython Directory to be used while starting ipython notebook
environment = IPYTHONDIR=${directory:ipython_dir}
environment =
IPYTHONDIR=${directory:ipython_dir}
JUPYTER_CONFIG_DIR=${directory:jupyter_config_dir}
JUPYTER_DATA_DIR=${directory:jupyter_data_dir}
[ipython-notebook-config]
<= dynamic-jinja2-template-base
......@@ -93,6 +98,12 @@ notebook_dir = ${:var}/notebooks
ipython_dir = ${:home}/ipython
ipython_kernel_dir = ${:ipython_dir}/kernels
erp5_kernel_dir = ${:ipython_kernel_dir}/ERP5
ipython_extension_dir = ${:ipython_dir}/extensions
# Add folders to explicitly define jupyter [config/data] directories
jupyter_data_dir = ${:home}/jupyter_data
jupyter_nbext_dir = ${:home}/jupyter_data/nbextensions
jupyter_config_dir = ${:home}/jupyter_config
jupyter_nbconfig_dir = ${:home}/jupyter_config/nbconfig
[publish-connection-parameter]
recipe = slapos.cookbook:publish.serialised
......@@ -124,3 +135,17 @@ template = {{ custom_js_location }}/{{ custom_js_filename }}
rendered = ${directory:ipython_dir}/profile_default/static/custom/custom.js
mode = 0744
[renderjs-symlink-nbextension]
recipe = cns.recipe.symlink
symlink = {{ renderjs_extension_location }}/renderjs_nbextension/renderjs_nbextension = ${directory:jupyter_nbext_dir}/renderjs_nbextension
autocreate = true
[renderjs-symlink-nbconfig]
recipe = cns.recipe.symlink
symlink = {{ renderjs_extension_location }}/renderjs_nbextension/renderjs_nbextension/notebook.json = ${directory:jupyter_nbconfig_dir}/notebook.json
autocreate = true
[renderjs-symlink-ipyextension]
recipe = cns.recipe.symlink
symlink = {{ renderjs_extension_location }}/renderjs_ipyextension/renderjs_ipyextension/renderjs_extension.py = ${directory:ipython_extension_dir}/renderjs_extension.py
autocreate = true
......@@ -8,10 +8,12 @@ extends =
../../component/pandas/buildout.cfg
../../component/openssl/buildout.cfg
../../component/seaborn/buildout.cfg
../../component/git/buildout.cfg
parts =
slapos-cookbook
ipython-notebook
instance-jupyter
renderjs-extension
[ipython-notebook]
; In the ipython notebook software, we use more eggs than in the minimal
......@@ -60,12 +62,19 @@ md5sum = ab6e78ea20855e07d388b5b86d1770fe
filename = custom.js.jinja
md5sum = a851a68667a4e676cfa86b34a86b4239
[renderjs-extension]
recipe = slapos.recipe.build:gitclone
git-executable = ${git:location}/bin/git
repository = https://lab.nexedi.com/Kreisel/jupyter_renderjs_extension.git
branch = master
location = ${buildout:parts-directory}/${:_buildout_section_name_}
[instance-jupyter]
recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/instance.cfg.in
rendered = ${buildout:directory}/template.cfg
mode = 0644
md5sum = 26a28b74c8b18c92108c751b87abe80c
md5sum = 707363d251d64398509ab11055a16591
context =
key bin_directory buildout:bin-directory
key develop_eggs_directory buildout:develop-eggs-directory
......@@ -82,6 +91,7 @@ context =
key kernel_json_filename kernel-json:filename
key custom_js_location custom-js:location
key custom_js_filename custom-js:filename
key renderjs_extension_location renderjs-extension:location
[versions]
Pygments = 2.2.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