Skip to content

Commit 0df20d8

Browse files
committed
fix windows and remove anaconda
1 parent 2d7235f commit 0df20d8

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

episodes/getting-started.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Jupyter notebooks let us execute and view the results of our Python code immedia
7171
- Each notebook contains one or more cells that contain code, text, or images.
7272

7373
### Start JupyterLab
74-
Once you have created the `lc-python` directory on your Desktop, you can start JupyterLab by opening a shell command line interface or by using Anaconda Navigator.
74+
Once you have created the `lc-python` directory on your Desktop, you can start JupyterLab by opening a shell command line interface.
7575

7676
#### Mac users - Command Line
7777

@@ -92,14 +92,16 @@ $ jupyter lab
9292

9393
To start the JupyterLab server you will need to access the Anaconda Prompt.
9494

95-
1. Press the <kbd>Windows Logo Key</kbd> and search for `Anaconda Prompt`, click the result or press enter.
96-
97-
2. Once you have launched the Anaconda Prompt, type the command `jupyter lab`.
95+
1. Press the <kbd>Windows Logo Key</kbd> and search for `Miniforge Prompt`, click the result or press enter.
96+
2. Once you have launched the Miniforge Prompt, change directories to the `lc-python` folder you created earlier. (The example below assumes a starting path of `C:\Users\username`)
97+
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.
98+
4. Finally, type `jupyter lab` which should open a browser window where you can run Jupyter Notebooks.
9899

99100
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.
100101

101102
```bash
102-
$ cd ..\Desktop\lc-python
103+
$ cd \Desktop\lc-python
104+
$ conda activate carpentries
103105
$ jupyter lab
104106
```
105107

@@ -189,7 +191,6 @@ You can also use "hotkeys"" to change Jupyter cells from Code to Markdown and ba
189191
- Press the <kbd>y</kbd> key to convert the cell back to Code.
190192
::::::::::::::::::::::::::::::::::::::::::::::::::
191193

192-
[anaconda]: https://docs.anaconda.com/anaconda/install/
193194
[spyder]: https://www.spyder-ide.org/
194195
[jupyterlab]: https://jupyterlab.readthedocs.io/en/stable/
195196

episodes/libraries.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ The ASCII letters are abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
120120

121121
## Module not found error
122122

123-
Before you can import a Python library, you sometimes will need to download and install it on your machine. Anaconda comes with many of the most popular Python libraries for scientific computing applications built-in, so if you installed Anaconda for this workshop, you'll be able to import many common libraries directly. Some less common tools, like the PyMarc library, however, would need to be installed first.
123+
Before you can import a Python library, you sometimes will need to download and install it on your machine. The Carpentries conda environment that we're using for the workshop installs a number of common Python libraries for academic computing. Since those are available when you activate the environment you'll be able to import many common libraries directly. Some less common tools, like the PyMarc library, however, would need to be installed first.
124124

125125
```python
126126
import pymarc
@@ -130,7 +130,7 @@ import pymarc
130130
ModuleNotFoundError: No module named 'pymarc'
131131
```
132132

133-
You can find out how to install the library by looking at the documentation. [PyMarc](https://pypi.org/project/pymarc/), for example, recommends using a command line tool, `pip`, to install it. You can install with pip in a Jupyter notebook by starting the command with a percentage symbol, which allows you to run shell commands from Jupyter:
133+
You can find out how to install the library by looking at the documentation. [PyMarc](https://pypi.org/project/pymarc/), for example, recommends using a command line tool, `pip`, for installation, though you can also [install PyMarc using conda](https://anaconda.org/asmeurer/pymarc). To install with pip in a Jupyter notebook you can begin the command with a percentage symbol, which allows you to run shell commands from Jupyter:
134134

135135
```python
136136
%pip install pymarc

0 commit comments

Comments
 (0)