[buildout]
extends =
  buildout.hash.cfg
  ../openssl/buildout.cfg
  ../jupyter/buildout.cfg
  ../../stack/monitor/buildout.cfg
parts +=
  slapos-cookbook
  jupyter
  jupyter-notebook-initialized-scripts
  instance-jupyter-notebook

[gcc]
# Always build GCC for Fortran (see openblas).
max_version = 0

[jupyter]
extra-eggs =
python_executable = ${buildout:bin-directory}/${:interpreter}

[download-file-base]
recipe = slapos.recipe.build:download
url = ${:_profile_base_location_}/${:filename}

[jupyter-notebook-config]
<= download-file-base

[jupyter-set-password]
<= download-file-base

[erp5-kernel]
<= download-file-base

[kernel-json]
<= download-file-base

[custom-js]
<= download-file-base

[instance-jupyter-notebook]
recipe = slapos.recipe.template:jinja2
url = ${:_profile_base_location_}/${:filename}
output = ${buildout:directory}/template.cfg
context =
  key bin_directory buildout:bin-directory
  key develop_eggs_directory buildout:develop-eggs-directory
  key eggs_directory buildout:eggs-directory
  key openssl_output openssl-output:openssl
  key python_executable jupyter:python_executable
  key jupyter_config_location jupyter-notebook-config:location
  key jupyter_config_filename jupyter-notebook-config:filename
  key jupyter_set_password_location jupyter-set-password:location
  key jupyter_set_password_filename jupyter-set-password:filename
  key erp5_kernel_location erp5-kernel:location
  key erp5_kernel_filename erp5-kernel:filename
  key kernel_json_location kernel-json:location
  key kernel_json_filename kernel-json:filename
  key custom_js_location custom-js:location
  key custom_js_filename custom-js:filename
  key monitor_template_rendered buildout:directory

[versions]
Pygments = 2.2.0
ipykernel = 4.5.2
ipython = 5.3.0
jupyter-client = 5.0.0
jupyter-core = 4.3.0
mistune = 0.7.3
nbformat = 4.3.0
notebook = 4.4.1
prompt-toolkit = 1.0.13
pyzmq = 16.0.2
scikit-learn = 0.18.1
statsmodels = 0.8.0
terminado = 0.6
tornado = 4.4.2

# nbconvert 4.2.0 depends on entrypoints egg that is not available as tar/zip source.
nbconvert = 4.1.0
pathlib2 = 2.2.1
patsy = 0.4.1
scandir = 1.5
wcwidth = 0.1.7
jupyter-console = 5.1.0