Cleaned up jupyter container, fixed PATH

This commit is contained in:
2023-03-07 09:03:10 -08:00
parent 41ee2dc5b7
commit d4666c5a0d
6 changed files with 48 additions and 116 deletions
+30 -26
View File
@@ -8,11 +8,24 @@ This directory contains build files for a complete jupyter environment. It is ba
The images these files produce contain everything you could possibly want in a jupyter notebook. Additional packages can be installed in notebooks with `%%bash` magic.
## Building the Image
To build this image, run `build/build.fish.` Edit the script to customize the image.
## Image contents
- jupyter + all dependencies
- Python + many packages
- Octave
- R
- Julia
## TODO
- Fix sage
- Haskell ([source](https://github.com/IHaskell/ihaskell-notebook))
- Maxima Kernel
## Configuration
Change the permissions on the configuration volume (see `docker-compose.yml`) if you get errors.
@@ -34,30 +47,21 @@ The first sets `0.0.0.0` to the allowed local hostname list. This prevents a pos
The second line sets a persistent token. If this config value is unset, jupyter will generate a new one on each run, making it hard to make a one-click bookmark.
## Image contents
- jupyterlab, jupyterhub, notebook
- latex + pandoc for exporting
- mamba for packages
- Python
- Scrape tools (bs4, requests)
- scipy, scikit-learn, scikit-image
- tensorflow
- sympy
- numpy
- matplotlib
- pandas
- manim
- Octave
- R
- Julia
### As a Server
Add the following lines and remove ``c.ServerApp.token``. This allows remote access and enables password authentication. **Warning:** be careful. Anyone with access to this server has a shell in your system.
## TODO
- Auto dark theme
- Fix sage
- GPU support ([source](https://github.com/iot-salzburg/gpu-jupyter))
- Haskell ([source](https://github.com/IHaskell/ihaskell-notebook))
- Rust Kernel
- C++ Kernel
- Perl Kernel
- Maxima Kernel
```python
c.NotebookApp.allow_remote_access = True
c.NotebookApp.allow_origin = "*"
c.ServerApp.ip = "*"
c.ServerApp.password = u"pwd_str"
c.ServerApp.open_browser = False
```
Passwords can be generated with
```python
from jupyter_server.auth import passwd
passwd()
```