Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bc_uab_jupyterlab
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bo-Chun Chen
bc_uab_jupyterlab
Commits
994892a3
Commit
994892a3
authored
7 years ago
by
Jeremy Nicklas
Browse files
Options
Downloads
Patches
Plain Diff
wait for server to start before showing view
parent
b6d9cc13
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
template/after.sh
+8
-0
8 additions, 0 deletions
template/after.sh
view.html.erb
+0
-6
0 additions, 6 deletions
view.html.erb
with
8 additions
and
6 deletions
template/after.sh
0 → 100755
+
8
−
0
View file @
994892a3
# 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
This diff is collapsed.
Click to expand it.
view.html.erb
+
0
−
6
View file @
994892a3
<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"
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment