# Update conda base environment to match specifications in environment.yml
# Update conda base environment to match specifications in environment.yml
ADD environment.yml /tmp/environment.yml
ADD environment.yml /tmp/environment.yml
USER root
USER root
RUN sed-i"s|name\: jupyter-quickstart|name\: base|g" /tmp/environment.yml # we need to replace the name of the environment with base such that we can update the base environment here
RUN sed-i"s|name\: jupyter-example-profile|name\: base|g" /tmp/environment.yml # we need to replace the name of the environment with base such that we can update the base environment here
USER $NB_USER
USER $NB_USER
RUN conda env update -f /tmp/environment.yml # All packages specified in environment.yml are installed in the base environment
RUN conda env update -f /tmp/environment.yml # All packages specified in environment.yml are installed in the base environment
This repository contains an exemplary Jupyter profile which works with the RWTH Jupyter server. To be more specific, it includes the following files
This repository contains an exemplary Jupyter profile which works with the RWTH Jupyter server. To be more specific, it includes the following files
*`Quickstart.ipynb` which is an exemplary Jupyter notebook file.
*`Quickstart.ipynb` which is an exemplary Jupyter notebook file.
*`environment.yml` which specifies the required Python packages needed to run `Quickstart.ipynb`.
*`environment.yml` which specifies the required Python packages needed to run `Quickstart.ipynb`. This file is used by Anaconda or `conda`.
*`Dockerfile` which defines the linux environment. In the end, the packages in `environment.yml` are installed and a `postBuild` script is executed afterwards.
*`Dockerfile` which defines the linux environment. In the end, the packages in `environment.yml` are installed and a `postBuild` script is executed afterwards.
*`.gitlab-ci.yml` which specifies the necessary Docker build commands (which are executed every time `Dockerfile` changes in Git).
*`.gitlab-ci.yml` which specifies the necessary Docker build commands (which are executed every time `Dockerfile` changes in Git).
Run the notebook directly online [](https://mybinder.org/v2/git/https%3A%2F%2Fgit.rwth-aachen.de%2FIENT%2Fjupyter-quickstart/master?urlpath=lab/tree/index.ipynb) (the starting process of the session may take up to one minute).
Run the notebook directly online [](https://mybinder.org/v2/git/https%3A%2F%2Fgit.rwth-aachen.de%2Fjupyter%2Fexample-profile/master?urlpath=lab/tree/Quickstart.ipynb) (the starting process of the session may take up to one minute).
## Installation
## Installation
...
@@ -19,10 +19,10 @@ TBD
...
@@ -19,10 +19,10 @@ TBD
### Docker
### Docker
For advanced users only: If you happen to have Docker installed, you can start a local dockerized JupyterLab with enabled GDET3-Demos with
For advanced users only: If you happen to have Docker installed, you can start a local dockerized JupyterLab with
```bash
```bash
docker run --name='jupyter-quickstart'--rm-it-p 8888:8888 -eJUPYTER_ENABLE_LAB=yes registry.git.rwth-aachen.de/ient/jupyter-quickstart:master
docker run --name='jupyter-example-profile'--rm-it-p 8888:8888 -eJUPYTER_ENABLE_LAB=yes registry.git-ce.rwth-aachen.de/jupyter/example-profile:master
```
```
Copy and paste the displayed link to your favorite browser.
Copy and paste the displayed link to your favorite browser.
...
@@ -35,10 +35,10 @@ To run the notebooks on your local machine, you may use [Anaconda](https://www.a
...
@@ -35,10 +35,10 @@ To run the notebooks on your local machine, you may use [Anaconda](https://www.a
* Download this repository to your local disk. You can download it as a zip-File or use `git`:
* Download this repository to your local disk. You can download it as a zip-File or use `git`:
* It is highly recommended to run the notebooks in an isolated Anaconda environment. You can create a new environment called `jupyter-quickstart` from the provided `environment.yml` by running the following command in the Anaconda prompt
* It is highly recommended to run the notebooks in an isolated Anaconda environment. You can create a new environment called `jupyter-example-profile` from the provided `environment.yml` by running the following command in the Anaconda prompt
```bash
```bash
conda env create -f environment.yml
conda env create -f environment.yml
...
@@ -48,10 +48,10 @@ To run the notebooks on your local machine, you may use [Anaconda](https://www.a
...
@@ -48,10 +48,10 @@ To run the notebooks on your local machine, you may use [Anaconda](https://www.a
* Activate this environment with
* Activate this environment with
```bash
```bash
conda activate jupyter-quickstart
conda activate jupyter-example-profile
```
```
* Run two final commands in the Anaconda prompt (with activated `jupyter-quickstart` environment):
* Run two final commands in the Anaconda prompt (with activated `jupyter-example-profile` environment):
```bash
```bash
chmod +x binder/postBuild
chmod +x binder/postBuild
...
@@ -62,13 +62,13 @@ To run the notebooks on your local machine, you may use [Anaconda](https://www.a
...
@@ -62,13 +62,13 @@ To run the notebooks on your local machine, you may use [Anaconda](https://www.a
### Local Run
### Local Run
* Activate the environment with `conda activate jupyter-quickstart`.
* Activate the environment with `conda activate jupyter-example-profile`.
* Run JupyterLab `jupyter lab`. In your browser, JupyterLab should start. You can then open `index.ipynb` for an overview over all notebooks.
* Run JupyterLab `jupyter lab`. In your browser, JupyterLab should start. You can then open `index.ipynb` for an overview over all notebooks.
* You can deactivate the environment with `conda deactivate`.
* You can deactivate the environment with `conda deactivate`.
## Contact
## Contact
* If you found a bug, please use the [issue tracker](https://git.rwth-aachen.de/IENT/jupyter-quickstart/issues).
* If you found a bug, please use the [issue tracker](https://git-ce.rwth-aachen.de/jupyter/example-profile/issues).
* In all other cases, please contact [Christian Rohlfing](http://www.ient.rwth-aachen.de/cms/c_rohlfing/).
* In all other cases, please contact [Christian Rohlfing](http://www.ient.rwth-aachen.de/cms/c_rohlfing/).
The code is licensed under the [MIT license](https://opensource.org/licenses/MIT).
The code is licensed under the [MIT license](https://opensource.org/licenses/MIT).