Commit 77ffa61e authored by Ayush Tiwari's avatar Ayush Tiwari Committed by Kirill Smelkov

IPython Notebook: Explicitly add environment variable around wrapper and use...

IPython Notebook: Explicitly add environment variable around wrapper and use ipython directory inside instance in env

[ kirr: By default IPython keeps configuration and other files location in
  ~/.ipython . What this patch does is organize explicit directory in instance
  tree to keep such files  ]

/reviewed-by @kirr  (on !33)
parent 2ff9b784
...@@ -81,6 +81,8 @@ command-line = ...@@ -81,6 +81,8 @@ command-line =
--config=${ipython-notebook-config:rendered} --config=${ipython-notebook-config:rendered}
wrapper-path = ${directory:service}/ipython_notebook wrapper-path = ${directory:service}/ipython_notebook
parameters-extra = true parameters-extra = true
# Explicitly define IPython Directory to be used while starting ipython notebook
environment = IPYTHONDIR=${directory:ipython_dir}
[ipython-notebook-config] [ipython-notebook-config]
<= dynamic-jinja2-template-base <= dynamic-jinja2-template-base
...@@ -117,6 +119,9 @@ service = ${:etc}/service ...@@ -117,6 +119,9 @@ service = ${:etc}/service
promise = ${:etc}/promise/ promise = ${:etc}/promise/
log = ${:var}/log log = ${:var}/log
notebook_dir = ${:var}/notebooks notebook_dir = ${:var}/notebooks
# Add folders to explicitly define ipython directory
ipython_dir = ${:home}/ipython
ipython_kernel_dir = ${:ipython_dir}/kernels
[publish-connection-parameter] [publish-connection-parameter]
recipe = slapos.cookbook:publish recipe = slapos.cookbook:publish
......
...@@ -44,7 +44,7 @@ recipe = slapos.recipe.template:jinja2 ...@@ -44,7 +44,7 @@ recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/instance.cfg.in template = ${:_profile_base_location_}/instance.cfg.in
rendered = ${buildout:directory}/template.cfg rendered = ${buildout:directory}/template.cfg
mode = 0644 mode = 0644
md5sum = 3cf8e0d61d4eb17201164239571f247a md5sum = e67b3cc33db32993a70895173e7b0150
context = context =
key bin_directory buildout:bin-directory key bin_directory buildout:bin-directory
key develop_eggs_directory buildout:develop-eggs-directory key develop_eggs_directory buildout:develop-eggs-directory
......
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