diff --git a/book/requirements.txt b/book/requirements.txt index ca3dfec..65347b0 100644 --- a/book/requirements.txt +++ b/book/requirements.txt @@ -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 @@ -284,7 +288,7 @@ numpy==1.24.3 # numba # pandas # scipy -orjson==3.8.13 +orjson==3.9.15 # via fastapi overrides==7.4.0 # via jupyter-server @@ -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 @@ -522,6 +530,7 @@ traitlets==5.9.0 # nbformat typing-extensions==4.6.1 # via + # altair # async-lru # myst-nb # myst-parser diff --git a/lectures/pandas/PublicAPIs.ipynb b/lectures/pandas/PublicAPIs.ipynb index 1c80de7..65b02ac 100644 --- a/lectures/pandas/PublicAPIs.ipynb +++ b/lectures/pandas/PublicAPIs.ipynb @@ -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" ] diff --git a/lectures/production/from-script-to-project/monty-hall-game4/monty_hall_game/__main__.py b/lectures/production/from-script-to-project/monty-hall-game4/monty_hall_game/__main__.py index 27d14a7..9ae637f 100644 --- a/lectures/production/from-script-to-project/monty-hall-game4/monty_hall_game/__main__.py +++ b/lectures/production/from-script-to-project/monty-hall-game4/monty_hall_game/__main__.py @@ -1,4 +1,4 @@ from .cli import main if __name__ == "__main__": - main() \ No newline at end of file + main() diff --git a/lectures/python/exercises.ipynb b/lectures/python/exercises.ipynb index 0bc0490..a26d0c0 100644 --- a/lectures/python/exercises.ipynb +++ b/lectures/python/exercises.ipynb @@ -404,8 +404,7 @@ "metadata": {}, "outputs": [], "source": [ - "class Square(...):\n", - " ...\n", + "class Square(...): ...\n", "\n", "\n", "sq = Square(5)\n",