Skip to content

Commit 2d7235f

Browse files
committed
updates for conda forge
1 parent 642f1c5 commit 2d7235f

File tree

3 files changed

+12
-20
lines changed

3 files changed

+12
-20
lines changed

episodes/data-visualisation.md

+1-7
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,9 @@ albany['circulation'].plot(kind='hist', bins=20,
141141
## Use Plotly for interactive plots
142142

143143
Let’s switch back to the full DataFrame in `df_long` and use another
144-
plotting package in Python called Plotly. First let’s install and then use the package.
144+
plotting package in Python called Plotly.
145145

146146
```python
147-
# uncomment below to install plotly if the import fails.
148-
# !pip install plotly
149-
150-
# if you didn't install Jupyter via Anaconda, you may also need to install ipywidgets.
151-
# !pip install ipywidgets
152-
153147
import plotly.express as px
154148
```
155149

episodes/getting-started.md

+10-12
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Here a few areas where you might apply Python in your work.
5151

5252
## Use JupyterLab to edit and run Python code.
5353

54-
If you haven't already done so, see [the setup instructions](../learners/setup.md) for details on how to install JupyterLab and Python via Anaconda. The setup instructions also walk you through the steps you should follow to create an `lc-python` folder on your Desktop, and to download and unzip the dataset we'll be working with inside of that directory.
54+
If you haven't already done so, see [the setup instructions](../learners/setup.md) for details on how to install JupyterLab and Python using Miniforge. The setup instructions also walk you through the steps you should follow to create an `lc-python` folder on your Desktop, and to download and unzip the dataset we'll be working with inside of that directory.
5555

5656
### Getting started with JupyterLab
5757
To run Python, we are going to use Jupyter Notebooks via [JupyterLab][jupyterlab]. Jupyter notebooks are common tools for data science and visualization, and serve as a convenient environment for running Python code interactively where we can view and share the results of our Python code.
@@ -76,10 +76,15 @@ Once you have created the `lc-python` directory on your Desktop, you can start J
7676
#### Mac users - Command Line
7777

7878
1. Press the <kbd>cmd</kbd> + <kbd>spacebar</kbd> keys and search for `Terminal`. Click the result or press <kbd>return</kbd>. (You can also find `Terminal` in your `Applications` folder, under `Utilities`.)
79-
2. After you have launched Terminal, change directories to the `lc-python` folder you created earlier and type `jupyter lab`. Note that the `$` sign is used to indicate a command to be typed on the command prompt, but we never type the `$` sign itself, just what follows after it.
79+
2. After you have launched Terminal, change directories to the `lc-python` folder you created earlier.
80+
3. Next run `conda activate carpentries` to launch a Python environment which includes Jupyter Notebooks and other tools we will need to proceed through the lesson.
81+
4. Finally, type `jupyter lab` which should open a browser window where you can run Jupyter Notebooks.
82+
83+
Note that the `$` sign is used to indicate a command to be typed on the command prompt, but we never type the `$` sign itself, just what follows after it.
8084

8185
```bash
8286
$ cd ../Desktop/lc-python
87+
$ conda activate carpentries
8388
$ jupyter lab
8489
```
8590

@@ -89,22 +94,15 @@ To start the JupyterLab server you will need to access the Anaconda Prompt.
8994

9095
1. Press the <kbd>Windows Logo Key</kbd> and search for `Anaconda Prompt`, click the result or press enter.
9196

92-
2. Once you have launched the Anaconda Prompt, type the command `jupyter lab`. Note that the `$` sign is used to indicate a command to be typed on the command prompt, but we never type the `$` sign itself, just what follows after it.
97+
2. Once you have launched the Anaconda Prompt, type the command `jupyter lab`.
98+
99+
Note that the `$` sign is used to indicate a command to be typed on the command prompt, but we never type the `$` sign itself, just what follows after it.
93100

94101
```bash
95102
$ cd ..\Desktop\lc-python
96103
$ jupyter lab
97104
```
98105

99-
#### Start JupyterLab from Anaconda Navigator
100-
If you are unfamiliar with the command line, you can launch JupyterLab by opening the Anaconda Navigator app and choosing the `Launch` button underneath the JuypterLab icon.
101-
102-
First [start Anaconda Navigator (click for detailed instructions on macOS, Windows, and Linux)](https://docs.anaconda.com/free/navigator/getting-started/#navigator-starting-navigator). You can search for Anaconda Navigator via Spotlight on macOS (<kbd>Command</kbd> + <kbd>spacebar</kbd>), or by using the Windows search function (<kbd>Windows Logo Key</kbd>).
103-
104-
After you have launched Anaconda Navigator, click the `Launch` button under JupyterLab. You may need to scroll down to find it. Here is a screenshot of an Anaconda Navigator page similar to the one that should open on either macOS or Windows.
105-
106-
![Launch JupyterLab from Anaconda Navigator](../episodes/fig/0_anaconda_navigator_landing_page.png){alt='screenshot of the launch button for JuypterLab in Anaconda Navigator'}
107-
108106
## The JupyterLab Interface
109107

110108
Launching JupyterLab opens a new tab or window in your preferred web browser. While JupyterLab enables you to run code from your browser, it does not require you to be online. If you take a look at the URL in your browser address bar, you should see that the environment is located at your localhost, meaning it is running from your computer: `http://localhost:8888/lab`.

index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This lesson is an introduction to programming in Python for library and informat
1919

2020
2. Learners must install Python and JupyterLab, and download the dataset that will be used in the lesson, before the workshop begins.
2121

22-
Please see <a href="#installing-python-using-anaconda">setup instructions below</a> for details.
22+
Please see <a href="#installing-python-using-miniforge">setup instructions below</a> for details.
2323

2424

2525
::::::::::::::::::::::::::::::::::::::::::::::::::

0 commit comments

Comments
 (0)