IHaskell / ihaskell-notebook

IHaskell image for Jupyter Docker Stacks
MIT License
78 stars 9 forks source link

tmpfs mount #22

Open jamesdbrock opened 2 years ago

jamesdbrock commented 2 years ago

Most of the Display packages need to write tmp files for every render, so it's important that there be a proper tmpfs mount.

https://docs.docker.com/storage/tmpfs/

jamesdbrock commented 2 years ago

I tried docker run --rm --tmpfs /tmp -p 8888:8888 -v $PWD/notebook:/home/jovyan/work --name learn-you-a-haskell ghcr.io/jamesdbrock/ihaskell-notebook:master jupyter lab --LabApp.token='' and confirmed that the ihaskell-diagrams package is using the /tmp directory. But it didn't improve refresh speed perceptibly.