(neurosci)docker@c41bba35e30e:~$ jupyter notebook
[I 04:01:08.944 NotebookApp] Writing notebook server cookie secret to /home/docker/.local/share/jupyter/runtime/notebook_cookie_secret
[I 04:01:08.970 NotebookApp] Serving notebooks from local directory: /home/docker
[I 04:01:08.970 NotebookApp] 0 active kernels
[I 04:01:08.970 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/
[I 04:01:08.970 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 04:01:08.971 NotebookApp] No web browser found: could not locate runnable browser.
docker run -p 8888:8888 -i -t neuralensemble/simulation:py2 /bin/bash
Hello,I am new to neural simulations and wanted to try docker image with pre installed neural simulators. I installed docker (stable channel, which runs natively on Mac OS) and then downloaded the docker image:py2. It seems to work but I was wondering whether I can use it in jupyter notebook. It is not really convenient to use in terminal (I am not sure how people generally use it).
So I installed jupyter (pip) but it did not work.(neurosci)docker@c41bba35e30e:~$ jupyter notebook
[I 04:01:08.944 NotebookApp] Writing notebook server cookie secret to /home/docker/.local/share/jupyter/runtime/notebook_cookie_secret
[I 04:01:08.970 NotebookApp] Serving notebooks from local directory: /home/docker
[I 04:01:08.970 NotebookApp] 0 active kernels
[I 04:01:08.970 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/
[I 04:01:08.970 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 04:01:08.971 NotebookApp] No web browser found: could not locate runnable browser.
I also trieddocker run -p 8888:8888 -i -t neuralensemble/simulation:py2 /bin/bash
but still did not work.I would appreciate any suggestion on how to make it work.
Also, is it a normal behaviour that after typing docker run -i -t neuralensemble/simulation:py2 /bin/bashenvironment is activated? I thought the container should be activated and only after source ~/env/neurosci/bin/activatethe neurosci env should be activated.
Thanks for developing such a nice env,
docker run -p 8888:8888 -i -t neuralensemble/simulation:py2 /bin/bash
pip install --upgrade pip
pip install jupyter
jupyter notebook --ip 0.0.0.0 --no-browser
/
, as the PATH
as it causes the build to transfer the entire contents of your hard drive to the Docker daemon.Thanks for a quick reply, I tried your code but it sent a really huge context so I stopped it. How should I change the code to build from any folder (not root)?
Also, as I understood you are proposing to use jupyter as cmd (is that correct?) but I just wanted to use jupyter to run python.
The only problem is that when I exit container all changes are gone (need to install everything again). Is there is a way to change the container permanently (add jupyter) without re building image, will commit changes work for this?