Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion book/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ docutils==0.18.1
# sphinxcontrib-bibtex
email-validator==2.0.0.post2
# via fastapi
exceptiongroup==1.2.0
# via
# cattrs
# pytest
executing==1.2.0
# via stack-data
fastapi[all]==0.95.2
Expand Down Expand Up @@ -373,7 +377,7 @@ python-dotenv==1.0.0
# via uvicorn
python-json-logger==2.0.7
# via jupyter-events
python-multipart==0.0.6
python-multipart==0.0.7
# via fastapi
pytz==2023.3
# via pandas
Expand Down Expand Up @@ -495,6 +499,10 @@ terminado==0.17.1
# jupyter-server-terminals
tinycss2==1.2.1
# via nbconvert
tomli==2.0.1
# via
# jupyterlab
# pytest
toolz==0.12.0
# via altair
tornado==6.3.3
Expand Down Expand Up @@ -522,6 +530,7 @@ traitlets==5.9.0
# nbformat
typing-extensions==4.6.1
# via
# altair
# async-lru
# myst-nb
# myst-parser
Expand Down
6 changes: 3 additions & 3 deletions lectures/pandas/PublicAPIs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3320,9 +3320,9 @@
"source": [
"url = \"https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=51.5&lon=0\"\n",
"s = requests.Session()\n",
"s.headers[\n",
" \"User-Agent\"\n",
"] = \"uio-in3110 https://github.com/uio-in3110/uio-in3110.github.io\"\n",
"s.headers[\"User-Agent\"] = (\n",
" \"uio-in3110 https://github.com/uio-in3110/uio-in3110.github.io\"\n",
")\n",
"r = s.get(url)\n",
"r"
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .cli import main

if __name__ == "__main__":
main()
main()
3 changes: 1 addition & 2 deletions lectures/python/exercises.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,7 @@
"metadata": {},
"outputs": [],
"source": [
"class Square(...):\n",
" ...\n",
"class Square(...): ...\n",
"\n",
"\n",
"sq = Square(5)\n",
Expand Down