cd dkr
docker-compose build
Be patient; this takes a while to complete the build and the load.
To stop, hit ctrl-c from the terminal.
The dkr/workbench host folder is mapped to the work folder in the notebook container.
docker-compose up -ddocker-compose up --build -dTo inspect the logs
docker logs -f stanspaceFrom the host's command line; useful if you wish to ssh in remotely
docker-compose exec lab ipythonNote that the stack needs to be up and running for this to work
docker-compose downThe PyStan package isn't compatible with the asyncio event loop used internally by Jupyter.
As a workaround there are two options:
- Run the following at the top of any Python notebooks that will call
PyStan:
import nest_asyncio
nest_asyncio.apply()
del nest_asyncio- Use the
pystan-jupyterpackage which performs the above:
import stan_jupyter as stan