Public Repository

Last pushed: 2 years ago
Short Description
IPython notebook server with the full Scipy stack + OCaml + more.
Full Description

Dockerized Notebook + SciPy Stack + OCaml

Docker container for the SciPy stack + OCaml and configured IPython notebook server.
The main modification from the original ipython/scipyserver is the addition
of the IOCaml Kernel. The ipython-sql extension is also available.

Quickstart

Assuming you have docker installed, run this to start up a notebook server on https://localhost.

docker run -d -p 443:8888 -e "PASSWORD=MakeAPassword" dpinsard/jupycaml

You'll now be able to access your notebook at https://localhost with password MakeAPassword (please change the environment variable above).

Hacking on the Dockerfile

Clone this repository, make changes then build the container:

docker build -t jupycaml .
docker run -d -p 443:8888 -e "PASSWORD=MakeAPassword" jupycaml

Use your own certificate

This image looks for /key.pem. If it doesn't exist a self signed certificate will be made. If you would like to use your own certificate, concatenate your private and public key along with possible intermediate certificates in a pem file. The order should be (top to bottom): key, certificate, intermediate certificate.

Example:

cat hostname.key hostname.pub.cert intermidiate.cert > hostname.pem

Then you would mount this file to the docker container:

docker run -v /path/to/hostname.pem:/key.pem -d -p 443:8888 -e "PASSWORD=pass" dpinsard/jupycaml

Using HTTP

This docker image by default runs IPython notebook in HTTPS. If you'd like to run this in HTTP,
you can use the USE_HTTP environment variable. Setting it to a non-zero value enables HTTP.

Example:

docker run -d -p 80:8888 -e "PASSWORD=MakeAPassword" -e "USE_HTTP=1" dpinsard/jupycaml
Docker Pull Command
Owner
dpinsard

Comments (2)
signalpillar
2 years ago

If enter manually to the container and create a folder mkdir .jupycaml it works, so fix should be simple

signalpillar
2 years ago

Documentation requires an update or we need to build latest image as docker pull command doesn't work.

Using image of version 0.2 cannot start OCaml kernel, fails with the following error

[I 10:51:27.123 NotebookApp] Kernel started: b6c99e5b-7faf-4898-bd77-0afb1231e42a
Fatal error: exception Sys_error("/home/alan/.jupycaml/iocaml.log: No such file or directory")
[I 10:51:30.124 NotebookApp] KernelRestarter: restarting kernel (1/5)
Fatal error: exception Sys_error("/home/alan/.jupycaml/iocaml.log: No such file or directory")
[I 10:51:33.132 NotebookApp] KernelRestarter: restarting kernel (2/5)
Fatal error: exception Sys_error("/home/alan/.jupycaml/iocaml.log: No such file or directory")
[I 10:51:36.140 NotebookApp] KernelRestarter: restarting kernel (3/5)
Fatal error: exception Sys_error("/home/alan/.jupycaml/iocaml.log: No such file or directory")
[I 10:51:39.147 NotebookApp] KernelRestarter: restarting kernel (4/5)
Fatal error: exception Sys_error("/home/alan/.jupycaml/iocaml.log: No such file or directory")
[W 10:51:42.155 NotebookApp] KernelRestarter: restart failed
[W 10:51:42.156 NotebookApp] Kernel b6c99e5b-7faf-4898-bd77-0afb1231e42a died, removing from map.
[W 10:51:43.197 NotebookApp] Kernel does not exist: b6c99e5b-7faf-4898-bd77-0afb1231e42a
[W 10:51:43.200 NotebookApp] 404 GET /api/kernels/b6c99e5b-7faf-4898-bd77-0afb1231e42a?_=1448967067007 (192.168.99.1) 3.53ms referer=https://172.17.0.2:8888/notebooks/Untitled.ipynb?kernel_name=ocaml
[W 10:51:43.213 NotebookApp] Kernel deleted before session
[W 10:51:43.215 NotebookApp] 410 DELETE /api/sessions/88e6d7f5-b016-412d-ba2f-b253de84ddba (192.168.99.1) 3.02ms referer=https://172.17.0.2:8888/notebooks/Untitled.ipynb?kernel_name=ocaml

@dpinsard, could you please attach the Dockerfile ?