浏览代码

readme improvement

Claudio Gomes 5 年之前
父节点
当前提交
fd21b433e0
共有 2 个文件被更改,包括 28 次插入16 次删除
  1. 28 16
      README.md
  2. 二进制
      slides/tutorial.pptx

+ 28 - 16
README.md

@@ -6,31 +6,43 @@ This repository contains the materials that are used in the Co-simulation tutori
 
 1. Install [Docker](https://www.docker.com/).
 
-1. Using docker's console, navigate to the root of this repository.
+2. Using docker's console, navigate to the root of this repository.
 
-1. Build the docker image: `docker build -t jupyter .` This will download all dependencies you need to run the examples. You might need root access.
+3. Build the docker image:  
+```
+docker build -t jupyter .
+```
+This will download all dependencies you need to run the examples. You might need root access.
 
-1. If you are running docker on windows, you might need to note the host's ip address by running: `docker-machine ip`. Let us denote it by `MACHINE_IP`. If this step fails, you might need to run the next step to start the docker machine first.
+4. If you are running docker on windows, you might need to note the host's ip address by running: 
+```
+docker-machine ip
+```
+Let us denote it by `MACHINE_IP`. If this step fails, you might need to run the next step to start the docker machine first.
 
-1. Run the docker container: `docker run --name jupyterrun -p 8888:8888 -t jupyter`. This will start a container with name `jupyterrun` of the image tagged with `jupyter` and will forward any traffic going into port 8888 (in the host machine) to the same port in the virtual machine. Let `TOKEN` denote the token given.
+5. Run the docker container: 
+```
+docker run --name jupyterrun -p 8888:8888 -t jupyter
+```
+This will start a container with name `jupyterrun` of the image tagged with `jupyter` and will forward any traffic going into port 8888 (in the host machine) to the same port in the virtual machine. Let `TOKEN` denote the token given.
 
-1. Open your browser and navigate to `http://MACHINE_IP:8888/?token=TOKEN`
+6. Open your browser and navigate to `http://MACHINE_IP:8888/?token=TOKEN`
 
-1. Explore the examples.
+7. Explore the examples.
 
-1. Any changes made in the notebooks affect only the files inside the container. To retrieve them, you need to detach from the `jupyterrun` container (typing `Ctrl+C` on docker's console), and use the following command on docker's console: 
+8. Any changes made in the notebooks affect only the files inside the container. To retrieve them, you need to detach from the `jupyterrun` container (typing `Ctrl+C` on docker's console), and use the following command on docker's console: 
+```
+docker cp jupyterrun:/opt/notebooks/tutorial mytutorial
+```
 
-1. ```
-   docker cp jupyterrun:/opt/notebooks/tutorial mytutorial
-   ```
+Which will copy all files under the `tutorial ` folder to the `mytutorial` folder in the repository.
 
-   Which will copy all files under the `tutorial ` folder to the `mytutorial` folder in the repository.
+9. To terminate and clean up, run the following commands
+```
+docker stop jupyterrun
+docker rm jupyterrun
+```
 
-1. To terminate and clean up, run the following commands
-
-1. `docker stop jupyterrun`
-
-1.  `docker rm jupyterrun`
 
 # Exporting the VM
 

二进制
slides/tutorial.pptx