Skip to content

Commit

Permalink
Merge pull request #524 from AnswerDotAI/jupy-tut-two-segments
Browse files Browse the repository at this point in the history
Jupy tuturial add two segments
  • Loading branch information
jph00 authored Oct 16, 2024
2 parents c3f9323 + f01e114 commit f0bde8c
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion nbs/tutorials/jupyter_and_fasthtml.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,36 @@
"def click(): return P('You clicked me!')"
]
},
{
"cell_type": "markdown",
"id": "72fc8a55",
"metadata": {},
"source": [
"## Full screen view"
]
},
{
"cell_type": "markdown",
"id": "4cb6bb90",
"metadata": {},
"source": [
"You can view your app outside of Jupyter by going to `localhost:PORT`, where `PORT` is usually the default 8000, so in most cases just click [this link](localhost:8000/)."
]
},
{
"cell_type": "markdown",
"id": "b231b0b0",
"metadata": {},
"source": [
"## Graceful shutdowns"
]
},
{
"cell_type": "markdown",
"id": "86554c9d",
"metadata": {},
"source": [
"When you want to gracefully shut down the server use the `server.stop()` function displayed below. If you restart Jupyter without calling this line the thread may not be released and the `HTMX` callable above may throw errors. If that happens, a quick temporary fix is to change the `port` number above to something else.\n",
"Use the `server.stop()` function displayed below. If you restart Jupyter without calling this line the thread may not be released and the `HTMX` callable above may throw errors. If that happens, a quick temporary fix is to change the port number above to something else.\n",
"\n",
"Cleaner solutions to the dangling thread are to kill the dangling thread (dependant on each operating system) or restart the computer."
]
Expand Down

0 comments on commit f0bde8c

Please sign in to comment.