diff --git a/tutorial/jupyter/.ipynb_checkpoints/CPlantBox_Lesson-checkpoint.ipynb b/tutorial/jupyter/.ipynb_checkpoints/CPlantBox_Lesson-checkpoint.ipynb index 52e79fac4..237a056d6 100644 --- a/tutorial/jupyter/.ipynb_checkpoints/CPlantBox_Lesson-checkpoint.ipynb +++ b/tutorial/jupyter/.ipynb_checkpoints/CPlantBox_Lesson-checkpoint.ipynb @@ -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" ] diff --git a/tutorial/jupyter/CPlantBox_Lesson.ipynb b/tutorial/jupyter/CPlantBox_Lesson.ipynb index 52e79fac4..237a056d6 100644 --- a/tutorial/jupyter/CPlantBox_Lesson.ipynb +++ b/tutorial/jupyter/CPlantBox_Lesson.ipynb @@ -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" ]