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
+40-27Lines changed: 40 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -26,24 +26,33 @@ exercises: 5
26
26
## Before we begin
27
27
28
28
### Open the collaborative doc for our workshop https://broad.io/cb-python-20240927
29
-
You'll find all the links listed below in the collaborative doc.
29
+
You'll find all the links listed below as clickable links in the collaborative doc.
30
30
31
31
If you haven't completed your workshop setup please visit https://broad.io/cb-python-setup
32
32
33
-
##### If you need help with setup, please put the <spanstyle="color:fuchsia">pink post-it</span> on your computer and a TA will come help you.
33
+
####**If you need help** with setup, please put the <spanstyle="color:fuchsia">pink post-it</span> on your computer and a TA will come help you.
34
34
35
-
If you've created your colab account, downloaded the workshop data files, uploaded it to your colab account's google drive AND successfully run the access test, please put the <spanstyle="color:lime">green post-it</span> on your computer to indicate your setup is complete.
35
+
If you're fully set up (ie created your colab account, downloaded the workshop data files, uploaded the files to your colab account's google drive AND successfully run the access test), please put the <spanstyle="color:limegreen">green post-it</span> on your computer and feel free to browse today's lesson content. https:/broad.io/cb-python-20240927-lesson
36
36
37
-
To run the access test, visit https://broad.io/cb-python-access-test, 1. click "Copy to Drive" and, in YOUR COPY of `Python_workshop_data_access_test.ipynb` 2. click the ▶️ symbol on the left hand side of the cell.
38
-
{alt='Click the ▶️ symbol'}
39
37
40
-
This is what success looks like:
41
-
{alt=''}
38
+
**To run the access test**
39
+
1. visit https://broad.io/cb-python-access-test
40
+
2. click "Copy to Drive" and create your own copy of `Python_workshop_data_access_test.ipynb`
41
+
{alt='Click Copy to Drive'}
42
42
43
-
Feel free to browse today's lesson content https:/broad.io/cb-python-20240927-lesson
@@ -58,11 +67,11 @@ This lesson works with a series of CSV files of circulation data from the Chicag
58
67
If you haven't already done so, see [the setup instructions](../learners/setup.md) for details on preparing to use Google Colab for this workshop. The setup instructions also walk you through the steps you should follow to create an `lc-python` folder in your home directory, to download and unzip the dataset we'll be working with inside of that directory and then upload it to Google Drive so it will be accessible to Google Colab.
59
68
60
69
### Getting started with Jupyter Notebook
61
-
To run Python, we are going to use Jupyter Notebooks via [Google Colab][https://colab.google/]. 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.
70
+
To run Python, we are going to use Jupyter Notebooks via [Google Colab](https://colab.google/). 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.
62
71
63
72
::::::::::::::::::::::::::::::::::::::::: callout
64
73
### Alternatives to Juypter
65
-
There are other ways of editing, managing, and running Python code. Software developers often use an integrated development environment (IDE) like [PyCharm](https://www.jetbrains.com/pycharm/), [Spyder][spyder] or [Visual Studio Code (VS Code)](https://code.visualstudio.com/), to create and edit Python scripts. Others use text editors like Vim or Emacs to hand-code Python. After editing and saving Python scripts you can execute those programs within an IDE or directly on the command line.
74
+
There are other ways of editing, managing, and running Python code. Software developers often use an integrated development environment (IDE) like [PyCharm](https://www.jetbrains.com/pycharm/), [Spyder](https://www.spyder-ide.org) or [Visual Studio Code (VS Code)](https://code.visualstudio.com/), to create and edit Python scripts. Others use text editors like Vim or Emacs to hand-code Python. After editing and saving Python scripts you can execute those programs within an IDE or directly on the command line.
Jupyter notebooks let us execute and view the results of our Python code immediately within the notebook. JupyterLab has several other handy features:
@@ -74,14 +83,14 @@ Jupyter notebooks let us execute and view the results of our Python code immedia
74
83
to better explore your data and visualize the results of your analysis.
75
84
- Each notebook contains one or more cells that contain code, text, or images.
76
85
77
-
## Google colab
86
+
## Google Colab
78
87
79
-
Google colab is a web-based computational notebook hosted in the cloud by Google.
88
+
Google Colab is a web-based computational notebook hosted in the cloud by Google.
80
89
Much like a lab notebook where a wet-lab experimentalist might have both the
81
90
experimental protocol and notes on the specific experiment, a Jupyter notebook
82
91
allows you to have code and notes in the same notebook.
83
92
84
-
Visit https://colab.research.google.com/ and click on `Examples` or, if you're already in colab, `File -> Open notebook`. Then in the resulting window, click on `Examples`.
93
+
Visit https://colab.research.google.com/ and click on `Examples` or, if you're already in Colab, `File -> Open notebook`. Then in the resulting window, click on `Examples`.
85
94
86
95
Google offers many example notebooks:
87
96
@@ -90,7 +99,7 @@ Google offers many example notebooks:
90
99
Google offers a basic colab experience for free. Hosted runtime machines consume computing resources which will be [shut down](https://research.google.com/colaboratory/faq.html#resource-limits) if you're not active in the notebook. If you see an "Are you still there?" window during this workshop, complete the prompt so your colab notebooks stays active.
<imgsrc="fig/are_you_still_there.png"alt="Are you still there prompt"width="400"/>
94
103
</div>
95
104
96
105
If you see `Connect` or `Reconnect`, you've been disconnected from a hosted runtime and you'll need to reconnect. Any work you did in the notebook is likely to be stale and you'll need to `Runtime -> Run all` (Ctrl+F9).
@@ -163,9 +172,21 @@ You can move cells around in your notebook by using the arrow icons in the float
In Colab, Macs can use Ctrl+F9 OR ⌘+F9. In other Jupyter notebook environments, Ctrl+F9 may not be an option for Mac. For the rest of this workshop, we'll use indicate Ctrl+\<keystroke\> for simplicity. Mac users should keep in mind that using Command (⌘) in lieu of Ctrl is an option.
In colab, Macs can use Ctrl+F9 OR ⌘+F9. In other Jupyter notebook environments, Ctrl+F9 may not be an option for Mac. For the rest of this workshop, we'll use indicate Ctrl+\<keystroke\> for simplicity. Mac users should keep in mind that using Command (⌘) in lieu of Ctrl is an option.
@@ -176,18 +197,10 @@ Instructors: Since the lesson is focused on Python we don't include any Markdown
176
197
177
198
:::::::::::::::::::::::::::::::::::::::::::::::::
178
199
179
-
You can add text to a Juypter notebook by selecting a cell, and changing the dropdown above the notebook from `Code` to `Markdown`. Markdown is a lightweight language for formatting text. This feature allows you to annotate your code, add headers, and write documentation to help explain the code. While we won't cover Markdown in this lesson, there are many helpful online guides out there:
200
+
You can add text to a Juypter notebook by selecting a cell, and changing the cell from `Code` to `Markdown`. In Colab, select the cell, then use the keyboard shortcut CMD/CTRL M + y. Markdown is a lightweight language for formatting text. This feature allows you to annotate your code, add headers, and write documentation to help explain the code. While we won't cover Markdown in this lesson, there are many helpful online guides out there:
180
201
-[Markdown for Jupyter Cheatsheet (IBM)](https://www.ibm.com/docs/en/watson-studio-local/1.2.3?topic=notebooks-markdown-jupyter-cheatsheet)
{alt='screenshot of the Jupyter notebook dropdown to change a cell to Markdown'}
184
-
185
-
You can also use "hotkeys"" to change Jupyter cells from Code to Markdown and back:
186
-
187
-
- Click on the code cell that you want to convert to a Markdown cell.
188
-
- Press the <kbd>Esc</kbd> key to enter command mode.
189
-
- Press the <kbd>M</kbd> key to convert the cell to Markdown.
190
-
- Press the <kbd>y</kbd> key to convert the cell back to Code.
Copy file name to clipboardExpand all lines: index.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ site: sandpaper::sandpaper_site
6
6
## First adaptation of Python Intro for Libraries to Broad Computing Basics: Sept 1, 2024
7
7
The Python Intro for Libraries lesson currently uses a dataset of library usage data and uses Google Colab instead of JupyterLab. If you were familiar with the original version of the lesson and are planning to teach it again, please give yourself time to review the lesson for changes made to "Broadify" the content.
8
8
9
-
In future, this lesson may be adapted to use a more genomic-oriented dataset.
9
+
In future, this lesson may be adapted to use a more genomics-oriented dataset.
Copy file name to clipboardExpand all lines: learners/setup.md
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,23 @@ We will need to import our own resources into Colab, such as our simulated data.
23
23
24
24
You should see a `lc-python` folder in "My Drive", with a subfolder called `data`.
25
25
26
+
## Run the access test
27
+
1. Visit https://broad.io/cb-python-access-test
28
+
1. Click "Copy to Drive" and create your own copy of `Python_workshop_data_access_test.ipynb`
29
+
{alt='Click Copy to Drive'}
30
+
31
+
1. If you see this dialog box, click "Connect to Google Drive"
32
+
{alt='Click "Connect to Google Drive"'}
33
+
34
+
1. Authorize access for the google account you're using for this workshop. There will be several prompts to grant access.
35
+
{alt='Authorize access to your google account'}
36
+
1. Once access has been granted, go back to the access test notebook, click the ▶️ symbol on the left hand side of the first code cell.
37
+
38
+
{alt='the ▶️ symbol'}
39
+
You've successfully loaded data if you see a dataframe appear beneath the code cell.
40
+
41
+
If you need help with setup, we'll have office hours on Fri. Sept. 20 from 12:00 - 1:00pm in Tahiti Conference Room, 105B Room #301 and on Fri. Sept. 27 from 1:00 - 2:00pm in Madagascar Conference Room, 105B, Room #504.
0 commit comments