Why and how to use custom Docker environment on DeepNote

To ensure that dependencies are installed before we run a notebook, it is common to see a bunch of pip install , wget and apt-get commands at the beginning.

DeepNote offers an elegant way to manage these installation scripts with the init.ipynb, so we could keep our main notebook file clean and ensure that the dependencies are installed every time we spin up the virtual machine.

This works well when the number of packages are relatively small and when we have to experiment on different packages. However…