Skip to content

Commit

Permalink
Merge pull request #496 from RocketPy-Team/doc/fix-getting-started-co…
Browse files Browse the repository at this point in the history
…lab-notebook-error

DOC: Change from % to ! in the first cell to run properly in Colab.
  • Loading branch information
MateusStano authored Dec 7, 2023
2 parents e88b121 + fa7e42f commit 7a06868
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 23 deletions.
4 changes: 2 additions & 2 deletions docs/notebooks/deployable_payload_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
"metadata": {},
"outputs": [],
"source": [
"%pip install rocketpy netCDF4\n",
"%git clone https://github.com/RocketPy-Team/RocketPy.git"
"!pip install rocketpy netCDF4\n",
"!git clone https://github.com/RocketPy-Team/RocketPy.git"
]
},
{
Expand Down
5 changes: 2 additions & 3 deletions docs/notebooks/dispersion_analysis/dispersion_analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"metadata": {},
"outputs": [],
"source": [
"%git clone https://github.com/RocketPy-Team/RocketPy.git\n",
"!git clone https://github.com/RocketPy-Team/RocketPy.git\n",
"import os\n",
"\n",
"os.chdir(\"RocketPy/docs/notebooks/dispersion_analysis\")"
Expand Down Expand Up @@ -66,8 +66,7 @@
},
"outputs": [],
"source": [
"%pip install netCDF4\n",
"%pip install rocketpy"
"!pip install rocketpy"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"metadata": {},
"outputs": [],
"source": [
"%git clone https://github.com/giovaniceotto/RocketPy.git\n",
"!git clone https://github.com/giovaniceotto/RocketPy.git\n",
"import os\n",
"\n",
"os.chdir(\"RocketPy/docs/notebooks/dispersion_analysis\")"
Expand Down Expand Up @@ -60,8 +60,7 @@
},
"outputs": [],
"source": [
"%pip install netCDF4\n",
"%pip install rocketpy"
"!pip install rocketpy"
]
},
{
Expand Down
19 changes: 4 additions & 15 deletions docs/notebooks/getting_started_colab.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@
"We start by setting up our environment. To run this notebook, we will need:\n",
"\n",
"- RocketPy\n",
"- netCDF4 (to get weather forecasts)\n",
"- Data files (we will clone RocketPy's repository for these)\n",
"\n",
"Therefore, let's run the following lines of code:\n"
"Therefore, let's run the following lines of code:"
]
},
{
Expand All @@ -38,8 +37,8 @@
},
"outputs": [],
"source": [
"%pip install rocketpy netCDF4\n",
"%git clone https://github.com/giovaniceotto/RocketPy.git"
"!pip install rocketpy\n",
"!git clone https://github.com/giovaniceotto/RocketPy.git"
]
},
{
Expand Down Expand Up @@ -70,16 +69,6 @@
"Here we go through a simplified rocket trajectory simulation to get you started. Let's start by importing the rocketpy module.\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%load_ext autoreload\n",
"%autoreload 2"
]
},
{
"cell_type": "code",
"execution_count": 1,
Expand All @@ -101,7 +90,7 @@
"id": "ImgkhEkZNVE8"
},
"source": [
"If you are using Jupyter Notebooks, it is recommended to run the following line to make matplotlib plots which will be shown later interactive and higher quality.\n"
"It is recommended to run the following line to make matplotlib plots which will be shown later interactive and higher quality.\n"
]
},
{
Expand Down

0 comments on commit 7a06868

Please sign in to comment.