From 0ed024e020720e2f36220e4b6752a21f76c80100 Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Mon, 15 Jul 2024 11:38:37 +0200 Subject: [PATCH] Fix wrong symbol as cell magic --- 01_scientific_stack/00_content_numpy.ipynb | 6 +++--- 01_scientific_stack/02_content_pandas.ipynb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/01_scientific_stack/00_content_numpy.ipynb b/01_scientific_stack/00_content_numpy.ipynb index 077c4dc..03b6835 100644 --- a/01_scientific_stack/00_content_numpy.ipynb +++ b/01_scientific_stack/00_content_numpy.ipynb @@ -36,7 +36,7 @@ "source": [ "Before we can import these libraries, we must ensure that they installed on our computers. If you installed Python via the Anaconda Distribution that should already be the case. Otherwise, we can use Python's **package manager** `pip` to install them manually.\n", "\n", - "`pip` is a so-called command-line interface (CLI), meaning it is a program that is run within a terminal window. JupyterLab allows us to run such a CLI tool from within a notebook by starting a code cell with a single `%` symbol. Here, this does not mean Python's modulo operator but is just an instruction to JupyterLab that the following code is *not* Python.\n", + "`pip` is a so-called command-line interface (CLI), meaning it is a program that is run within a terminal window. JupyterLab allows us to run such a CLI tool from within a notebook by starting a code cell with a single `!` symbol. Here, this does not mean Python's modulo operator but is just an instruction to JupyterLab that the following code is *not* Python.\n", "\n", "So, let's proceed by installing [numpy ](https://numpy.org/) and [matplotlib ](https://matplotlib.org/)." ] @@ -55,7 +55,7 @@ } ], "source": [ - "%pip install numpy" + "!pip install numpy" ] }, { @@ -82,7 +82,7 @@ } ], "source": [ - "%pip install matplotlib" + "!pip install matplotlib" ] }, { diff --git a/01_scientific_stack/02_content_pandas.ipynb b/01_scientific_stack/02_content_pandas.ipynb index 9b7a526..1c82549 100644 --- a/01_scientific_stack/02_content_pandas.ipynb +++ b/01_scientific_stack/02_content_pandas.ipynb @@ -42,7 +42,7 @@ } ], "source": [ - "%pip install pandas" + "!pip install pandas" ] }, {