You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: episodes/getting-started.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,7 @@ Jupyter notebooks let us execute and view the results of our Python code immedia
71
71
- Each notebook contains one or more cells that contain code, text, or images.
72
72
73
73
### 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.
75
75
76
76
#### Mac users - Command Line
77
77
@@ -92,14 +92,16 @@ $ jupyter lab
92
92
93
93
To start the JupyterLab server you will need to access the Anaconda Prompt.
94
94
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.
98
99
99
100
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.
100
101
101
102
```bash
102
-
$ cd ..\Desktop\lc-python
103
+
$ cd\Desktop\lc-python
104
+
$ conda activate carpentries
103
105
$ jupyter lab
104
106
```
105
107
@@ -189,7 +191,6 @@ You can also use "hotkeys"" to change Jupyter cells from Code to Markdown and ba
189
191
- Press the <kbd>y</kbd> key to convert the cell back to Code.
Copy file name to clipboardExpand all lines: episodes/libraries.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,7 +120,7 @@ The ASCII letters are abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
120
120
121
121
## Module not found error
122
122
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.
124
124
125
125
```python
126
126
import pymarc
@@ -130,7 +130,7 @@ import pymarc
130
130
ModuleNotFoundError: No module named 'pymarc'
131
131
```
132
132
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:
0 commit comments