Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Eric Zheng
slapos
Commits
81ad9e57
Commit
81ad9e57
authored
Dec 19, 2017
by
Sebastian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ipython_notebook: Update software and instance for standalone ipython_notebook
parent
05135d13
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
9 deletions
+31
-9
software/ipython_notebook/instance.cfg.in
software/ipython_notebook/instance.cfg.in
+27
-7
software/ipython_notebook/software.cfg
software/ipython_notebook/software.cfg
+4
-2
No files found.
software/ipython_notebook/instance.cfg.in
View file @
81ad9e57
...
...
@@ -7,9 +7,11 @@ parts =
erp5-kernel
kernel-json
custom-js
monitor-base
extends =
{{ monitor_template_rendered }}/template-monitor.cfg
jiocontents-nbextension-symlink
jiocontents-erp5-config
# monitor-base
#extends =
# {{ monitor_template_rendered }}/template-monitor.cfg
eggs-directory = {{ eggs_directory }}
...
...
@@ -26,7 +28,9 @@ cert = ${slap-connection:cert-file}
# ERP5 URL to use in Jupyter by default
# default value is empty - which means no default ERP5 URL
configuration.erp5-url =
configuration.erp5-url =
# URL for the erp5 hateoas to be used for storage of notebooks
configuration.erp5-hateoas-url = default
[instance-parameter]
port = 8888
...
...
@@ -74,7 +78,9 @@ 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:ipython_dir}
[ipython-notebook-config]
<= dynamic-jinja2-template-base
...
...
@@ -98,6 +104,8 @@ notebook_dir = ${:var}/notebooks
ipython_dir = ${:home}/ipython
ipython_kernel_dir = ${:ipython_dir}/kernels
erp5_kernel_dir = ${:ipython_kernel_dir}/ERP5
nbextensions_dir = ${:ipython_dir}/nbextensions
jiocontents_dir = ${:nbextensions_dir}/jiocontents
[ipython_notebook]
# This part is called like this because knowledge0.write uses the part name for
...
...
@@ -112,9 +120,9 @@ filename = knowledge0.cfg
password =
[monitor-instance-parameter]
monitor-base-url = ${monitor-frontend-promise:url}
#
monitor-base-url = ${monitor-frontend-promise:url}
# In case you're using a developer instance you should edit these in:
#
monitor-base-url = ${monitor-httpd-conf-parameter:url}
monitor-base-url = ${monitor-httpd-conf-parameter:url}
# cors-domains = softinstXXXXX.host.vifib.net (or equivalent)
# interface-url = https://softinstXXXXX.host.vifib.net/erp5/web_site_module/monitoring_rjs_unsafe
instance-configuration =
...
...
@@ -123,6 +131,7 @@ instance-configuration =
[publish-connection-parameter]
recipe = slapos.cookbook:publish.serialised
url = https://[${instance-parameter:host}]:${instance-parameter:port}
erp5-hateoas-url = ${slapconfiguration:configuration.erp5-hateoas-url}
[erp5-kernel]
<= dynamic-jinja2-template-base
...
...
@@ -150,3 +159,14 @@ template = {{ custom_js_location }}/{{ custom_js_filename }}
rendered = ${directory:ipython_dir}/profile_default/static/custom/custom.js
mode = 0744
[jiocontents-erp5-config]
<= dynamic-jinja2-template-base
template = {{ jiocontents_config_location }}/{{ jiocontents_config_filename }}
rendered = ${directory:jiocontents_dir}/jiocontents_erp5_config.js
context =
key erp5_url slapconfiguration:configuration.erp5-hateoas-url
[jiocontents-nbextension-symlink]
recipe = cns.recipe.symlink
symlink = {{ jiocontents_nbextension_location }}/jiocontents = ${directory:jiocontents_dir}/src
autocreate = true
software/ipython_notebook/software.cfg
View file @
81ad9e57
...
...
@@ -9,7 +9,8 @@ extends =
../../component/openssl/buildout.cfg
../../component/seaborn/buildout.cfg
../../component/git/buildout.cfg
../../stack/monitor/buildout.cfg
# ../../stack/monitor/buildout.cfg
index = https://pypi.python.org/simple/
parts =
slapos-cookbook
ipython-notebook
...
...
@@ -29,6 +30,7 @@ eggs +=
${seaborn:egg}
${statsmodels:egg}
patsy
cns.recipe.symlink
[download-file-base]
recipe = slapos.recipe.build:download
...
...
@@ -78,7 +80,7 @@ recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/instance.cfg.in
rendered = ${buildout:directory}/template.cfg
mode = 0644
md5sum =
b564e553811db272be681c331b270bbe
md5sum =
ff1cd3e9d73e4b5892009a8a67de2b38
context =
key bin_directory buildout:bin-directory
key develop_eggs_directory buildout:develop-eggs-directory
...
...
Write
Preview
Markdown
is supported
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