Skip to content

Commit c2de59b

Browse files
committed
Setup for Fall 2026
1 parent 1d7fa47 commit c2de59b

79 files changed

Lines changed: 63861 additions & 2 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Week_0_python/Intro_assignment.ipynb‎

Lines changed: 501 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"## Ensuring the libararies are installed correctly\n",
8+
"\n",
9+
"Use this JN to check that all your libraries are installed correctly, and to install any that are not.\n",
10+
"\n",
11+
"First thing to note: See the \"Select Kernel\" in the upper-right hand corner? This needs to be set to the Python version you setup in the instructions:\n",
12+
"\n",
13+
"https://docs.google.com/document/d/1Cp4uuRHMWHfKTAbYAV14y2tMWslmj_-bv_xo3CxYGAo/edit?usp=sharing\n",
14+
"\n",
15+
"Presumably, if you are reading this, than you have already set up VSCode and done the library installs in the above document. \n",
16+
"\n",
17+
"Note: If you are using this file to \"fix\" library problems, first make sure that whatever you've selected in \"Select Kernel\" is the same for both JNs. \n"
18+
]
19+
},
20+
{
21+
"cell_type": "code",
22+
"execution_count": null,
23+
"metadata": {},
24+
"outputs": [],
25+
"source": [
26+
"# These are all the imports you'll need in the class; if you get a \"library not found\" then see the following cells for installing them\n",
27+
"\n",
28+
"# Note: If you get a pop-up that says \"ipykernel needed, install y/n\" and you've run either the windows_install.bat or mac_install.sh,\n",
29+
"# chances are the problem is actually that you opened the wrong folder. If you look in the upper left it should say Intro or ROB456 or ROB514\n",
30+
"# - it should not say GIT. \n",
31+
"# If you have not run the installs, do so - but you can also just say yes and then do the cell below.\n",
32+
"import otter\n",
33+
"import numpy as np\n",
34+
"import matplotlib.pyplot as plt\n",
35+
"import scipy\n",
36+
"import json\n",
37+
"\n",
38+
"print(np.__version__)"
39+
]
40+
},
41+
{
42+
"cell_type": "markdown",
43+
"metadata": {},
44+
"source": [
45+
"If all of the above imports worked, then you're done! If not, you can use the following cell to force-install the missing libraries\n",
46+
"\n",
47+
"This may take awhile, btw"
48+
]
49+
},
50+
{
51+
"cell_type": "code",
52+
"execution_count": null,
53+
"metadata": {},
54+
"outputs": [],
55+
"source": [
56+
"import sys\n",
57+
"!{sys.executable} -m pip install otter-grader\n",
58+
"!{sys.executable} -m pip install numpy\n",
59+
"!{sys.executable} -m pip install matplotlib\n",
60+
"!{sys.executable} -m pip install scipy\n",
61+
"!{sys.executable} -m pip install json"
62+
]
63+
},
64+
{
65+
"cell_type": "code",
66+
"execution_count": null,
67+
"metadata": {},
68+
"outputs": [],
69+
"source": [
70+
"import sys\n",
71+
"!{sys.executable} -m pip install --upgrade otter-grader\n",
72+
"!{sys.executable} -m pip install --upgrade numpy\n",
73+
"!{sys.executable} -m pip install --upgrade matplotlib\n",
74+
"!{sys.executable} -m pip install --upgrade scipy\n"
75+
]
76+
},
77+
{
78+
"cell_type": "code",
79+
"execution_count": null,
80+
"metadata": {},
81+
"outputs": [],
82+
"source": []
83+
}
84+
],
85+
"metadata": {
86+
"kernelspec": {
87+
"display_name": "base",
88+
"language": "python",
89+
"name": "python3"
90+
},
91+
"language_info": {
92+
"codemirror_mode": {
93+
"name": "ipython",
94+
"version": 3
95+
},
96+
"file_extension": ".py",
97+
"mimetype": "text/x-python",
98+
"name": "python",
99+
"nbconvert_exporter": "python",
100+
"pygments_lexer": "ipython3",
101+
"version": "3.12.4"
102+
}
103+
},
104+
"nbformat": 4,
105+
"nbformat_minor": 2
106+
}

0 commit comments

Comments
 (0)