From e95fe044ed3d340bbf041bf2ed34dbe2f97044f3 Mon Sep 17 00:00:00 2001 From: giovaniceotto Date: Wed, 29 Nov 2023 21:52:34 -0300 Subject: [PATCH 1/2] DOC: Change from % to ! in the first cell to run properly in Colab. --- docs/notebooks/getting_started_colab.ipynb | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/docs/notebooks/getting_started_colab.ipynb b/docs/notebooks/getting_started_colab.ipynb index 2ba6d3bd9..4ba05dd70 100644 --- a/docs/notebooks/getting_started_colab.ipynb +++ b/docs/notebooks/getting_started_colab.ipynb @@ -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:" ] }, { @@ -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" ] }, { @@ -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, @@ -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" ] }, { From fa7e42f9808b176e3c92b0cf08eb7b0206326378 Mon Sep 17 00:00:00 2001 From: MateusStano Date: Wed, 6 Dec 2023 21:21:46 +0100 Subject: [PATCH 2/2] DOC: cahnge % to ! in remaining notebooks --- docs/notebooks/deployable_payload_example.ipynb | 4 ++-- docs/notebooks/dispersion_analysis/dispersion_analysis.ipynb | 5 ++--- .../dispersion_analysis/parachute_drop_from_helicopter.ipynb | 5 ++--- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/docs/notebooks/deployable_payload_example.ipynb b/docs/notebooks/deployable_payload_example.ipynb index b753f9bca..fb96eb06d 100644 --- a/docs/notebooks/deployable_payload_example.ipynb +++ b/docs/notebooks/deployable_payload_example.ipynb @@ -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" ] }, { diff --git a/docs/notebooks/dispersion_analysis/dispersion_analysis.ipynb b/docs/notebooks/dispersion_analysis/dispersion_analysis.ipynb index 3ecdf1ad7..a15dc210f 100644 --- a/docs/notebooks/dispersion_analysis/dispersion_analysis.ipynb +++ b/docs/notebooks/dispersion_analysis/dispersion_analysis.ipynb @@ -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\")" @@ -66,8 +66,7 @@ }, "outputs": [], "source": [ - "%pip install netCDF4\n", - "%pip install rocketpy" + "!pip install rocketpy" ] }, { diff --git a/docs/notebooks/dispersion_analysis/parachute_drop_from_helicopter.ipynb b/docs/notebooks/dispersion_analysis/parachute_drop_from_helicopter.ipynb index 91b48a0f8..e9709ff14 100644 --- a/docs/notebooks/dispersion_analysis/parachute_drop_from_helicopter.ipynb +++ b/docs/notebooks/dispersion_analysis/parachute_drop_from_helicopter.ipynb @@ -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\")" @@ -60,8 +60,7 @@ }, "outputs": [], "source": [ - "%pip install netCDF4\n", - "%pip install rocketpy" + "!pip install rocketpy" ] }, {