Skip to content

Commit

Permalink
new lesson file
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoranzhou committed Oct 24, 2019
1 parent fb1e216 commit 502688a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,16 @@
"source": [
"#<---Click this triangle inside the round circle to download the CPlantBox\n",
"! git clone https://github.com/Plant-Root-Soil-Interactions-Modelling/CPlantBox # downloading the source code\n",
"os.chdir(\"/content/CPlantBox\") # change directory\n",
"!cmake . # Run Cmake, creating compiling files\n",
"!make # Complie the code to make it runable\n",
"# if you are running in Colab, the programmed is precompiled, so you can use it directly. if the next block does not work\n",
"# then you need to uncomment the next three lines and run this block.\n",
"#os.chdir(\"/content/CPlantBox\") # change directory\n",
"#!cmake . # Run Cmake, creating compiling files\n",
"#!make # Complie the code to make it runable\n",
"os.chdir(\"/content/CPlantBox/tutorial/jupyter\") # Change to the python directory (working directory)\n",
"# Congrats! Now you are ready to use the CPlantBox\n",
"\n",
"!rm modelparameter\n",
"!ln -s /content/CPlantBox/modelparameter/ modelparameter\n",
"!ls\n",
"# optional in case an update is just pushed to the repository\n",
"#! git pull # update the file comparing to github repository"
]
Expand Down
12 changes: 8 additions & 4 deletions tutorial/jupyter/CPlantBox_Lesson.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,16 @@
"source": [
"#<---Click this triangle inside the round circle to download the CPlantBox\n",
"! git clone https://github.com/Plant-Root-Soil-Interactions-Modelling/CPlantBox # downloading the source code\n",
"os.chdir(\"/content/CPlantBox\") # change directory\n",
"!cmake . # Run Cmake, creating compiling files\n",
"!make # Complie the code to make it runable\n",
"# if you are running in Colab, the programmed is precompiled, so you can use it directly. if the next block does not work\n",
"# then you need to uncomment the next three lines and run this block.\n",
"#os.chdir(\"/content/CPlantBox\") # change directory\n",
"#!cmake . # Run Cmake, creating compiling files\n",
"#!make # Complie the code to make it runable\n",
"os.chdir(\"/content/CPlantBox/tutorial/jupyter\") # Change to the python directory (working directory)\n",
"# Congrats! Now you are ready to use the CPlantBox\n",
"\n",
"!rm modelparameter\n",
"!ln -s /content/CPlantBox/modelparameter/ modelparameter\n",
"!ls\n",
"# optional in case an update is just pushed to the repository\n",
"#! git pull # update the file comparing to github repository"
]
Expand Down

0 comments on commit 502688a

Please sign in to comment.