Simple Jupyter Notebook with R running in docker
- Install Java
- Install Docker Desktop ** Note, if you are installing on Windows, Docker Desktop requires Windows 10 pro. Support for Windows 10 home is coming soon
- Clone the repo
- cd into
jupyter-r
- run
./gradlew build
to build the docker image. this will take a few min - run
./gradlew run
to start a container from the image and open a web browser to the jupyter application. If the page comes up saying it can't connect, wait a minute to see if it opens.
If you close your browser for any reason, run ./gradlew open
to open the app in browser again.
Any changes you make will be saved to your local filesystem.
Run ./gradlew stop
to stop the running container.
I haven't tested these steps...
- Clone the repo
- cd into
jupyter-r
- run
gradlew.bat build
to build the docker image. this will take a few min - run
gradlew.bat run
to start a container from the image, and open a web browser to the jupyter application. If the page comes up saying it can't connect, wait a minute to see if it opens. If you close your browser for any reason, rungradlew.bat open
to open the a pp in browser again.
Any changes you make will be saved to your local filesystem.
Run gradlew.bat stop
to stop the running container.
run the stop
gradle task to kill any running containers.
run the build
gradle task to rebuild the local image with any updates
run the run
task to start up the environment again
- Perhaps R Notebooks are better than Jupyter Notebooks for R.
- Perhaps you don't need to manage docker locally and instead can use Binder