Skip to content
Snippets Groups Projects
Commit 994892a3 authored by Jeremy Nicklas's avatar Jeremy Nicklas
Browse files

wait for server to start before showing view

parent b6d9cc13
No related branches found
No related tags found
No related merge requests found
# Wait for the Jupyter Notebook server to start
echo "Waiting for Jupyter Notebook server to open port ${port}..."
if wait_until_port_used "${host}:${port}" 60; then
echo "Discovered Jupyter Notebook server listening on port ${port}!"
else
echo "Timed out waiting for Jupyter Notebook server to open port ${port}!" ; exit 1
fi
sleep 2
<p>
If you see <code>Failed to connect to ...</code>, then wait a few seconds
before trying the <strong>Connect to Jupyter</strong> button again. This
warning appeared because the Jupyter Notebook is still starting up.
</p>
<form action="/node/<%= host %>/<%= port %>/login" method="post" target="_blank"> <form action="/node/<%= host %>/<%= port %>/login" method="post" target="_blank">
<input type="hidden" name="password" value="<%= password %>"> <input type="hidden" name="password" value="<%= password %>">
<button class="btn btn-primary" type="submit"> <button class="btn btn-primary" type="submit">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment