Skip to content

Commit 64bc73c

Browse files
committed
Add Plash header
1 parent 2ed8e6a commit 64bc73c

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

nbs/00_core.ipynb

+15-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
},
6060
{
6161
"cell_type": "code",
62-
"execution_count": null,
62+
"execution_count": 1,
6363
"id": "6c388490",
6464
"metadata": {},
6565
"outputs": [],
@@ -71,6 +71,7 @@
7171
" raise FileNotFoundError(\"Plash config not found. Please run plash_login and try again.\")\n",
7272
" cookies = Path(cookie_file).read_json()\n",
7373
" client.cookies.update(cookies)\n",
74+
" client.headers.update({'X-PLASH': 'true'})\n",
7475
" return client"
7576
]
7677
},
@@ -468,9 +469,21 @@
468469
],
469470
"metadata": {
470471
"kernelspec": {
471-
"display_name": "python3",
472+
"display_name": ".venv",
472473
"language": "python",
473474
"name": "python3"
475+
},
476+
"language_info": {
477+
"codemirror_mode": {
478+
"name": "ipython",
479+
"version": 3
480+
},
481+
"file_extension": ".py",
482+
"mimetype": "text/x-python",
483+
"name": "python",
484+
"nbconvert_exporter": "python",
485+
"pygments_lexer": "ipython3",
486+
"version": "3.12.6"
474487
}
475488
},
476489
"nbformat": 4,

0 commit comments

Comments
 (0)