Skip to content

Commit deeb62c

Browse files
committed
Add auth cell to the notebook
1 parent a3e4f0a commit deeb62c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

demo-notebooks/interactive/local_interactive.ipynb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,22 @@
1414
"from codeflare_sdk.cluster.auth import TokenAuthentication"
1515
]
1616
},
17+
{
18+
"cell_type": "code",
19+
"execution_count": null,
20+
"id": "2cc66278",
21+
"metadata": {},
22+
"outputs": [],
23+
"source": [
24+
"# Create authentication object and log in to desired user account (if not already authenticated)\n",
25+
"auth = TokenAuthentication(\n",
26+
" token = \"XXXX\",\n",
27+
" server = \"XXXX\",\n",
28+
" skip_tls = False\n",
29+
")\n",
30+
"auth.login()"
31+
]
32+
},
1733
{
1834
"cell_type": "code",
1935
"execution_count": 2,
@@ -73,6 +89,7 @@
7389
]
7490
},
7591
{
92+
"attachments": {},
7693
"cell_type": "markdown",
7794
"id": "12eef53c",
7895
"metadata": {},

0 commit comments

Comments
 (0)