sudo systemctl start docker
sudo systemctl stop docker
sudo docker run -d -p 8888:8888 --name f25 --user $(id -u) -v /home/amoshyc/workspace:/home/workspace:z -i fedora:25 bash
-z
is to prevent selinux blocking it.
When f25 is running, open a terminal with:
sudo docker exec -it f25 bash
sudo docker start f25
sudo docker stop f25
Numpy, Scipy, Jupyter, Matplotlib
pip3 install -U numpy scipy jupyter matplotlib scikit-learn
Somtimes, libstdc++ is needed
dnf install libstdc++
Generate config file
jupyter notebook --generate-config
Generate hashed password:
>>> from notebook.auth import passwd
>>> passwd()
Copy the output and edit /root/.jupyter/jupyter_notebook_config.py
.
Add
c.NotebookApp.ip = '*'
c.NotebookApp.password = '<your hashed password here>'
c.NotebookApp.open_browser = False
c.NotebookApp.port = 8888
jupyter notebook
and Open http://localhost:8888/
Install https://github.com/dunovank/jupyter-themes and execute
jt -t oceans16 -T
https://github.com/ipython-contrib/jupyter_contrib_nbextensions
- Install by pip3
jupyter contrib nbextension install --user
- Start notebook
- Navigate to http://localhost:8888/nbextensions/
- Enable desired extensions
Installation step needs some dependencies. Install them by dnf.
To use the code formatting
extensions, yapf is needed:
pip3 install yapf