Skip to content

Creating a development environment

liefeld edited this page Jul 17, 2019 · 3 revisions

The easiest way to create a development environment for this project is to hook your clone of this git repository into a docker container that already has Jupyter etc installed. This allows you to avoid the clumsiness of installing and enabling Jupyter extensions.

So with that, the following is how I run the code from my local git nbtools repository. I do need to reload pages when js or css changes, and reload the kernel (or restart the container) for changes in the python code, but its much simpler than the alternative

docker run -p 8888:8888 -v $PWD:$PWD -w $PWD 
   -v $PWD/nbtools/nbtools:/opt/conda/envs/python3.6/lib/python3.6/site-packages/nbtools 
   -v $PWD/nbtools/nbtools:/opt/conda/envs/python3.7/lib/python3.7/site-packages/nbtools 
   -v $PWD/nbtools/nbtools/static:/opt/conda/share/jupyter/nbextensions/nbtools 
   -it genepattern/genepattern-notebook:latest 
Clone this wiki locally