Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bc_uab_jupyter
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_jupyter
Commits
d1dd6453
Commit
d1dd6453
authored
7 years ago
by
Jeremy Nicklas
Browse files
Options
Downloads
Patches
Plain Diff
speed up load time
parent
fd056226
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CHANGELOG.md
+4
-0
4 additions, 0 deletions
CHANGELOG.md
template/after.sh
+3
-0
3 additions, 0 deletions
template/after.sh
template/before.sh.erb
+3
-0
3 additions, 0 deletions
template/before.sh.erb
template/script.sh.erb
+11
-1
11 additions, 1 deletion
template/script.sh.erb
with
21 additions
and
1 deletion
CHANGELOG.md
+
4
−
0
View file @
d1dd6453
...
...
@@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to
[
Semantic Versioning
](
http://semver.org/spec/v2.0.0.html
)
.
## [Unreleased]
### Changed
-
Increased verbosity of output to make debugging easier.
-
Does not launch template script as login shell anymore to speed up load time.
### Fixed
-
Fix job not ending if forked processes still running.
...
...
This diff is collapsed.
Click to expand it.
template/after.sh
+
3
−
0
View file @
d1dd6453
# Wait for the Jupyter Notebook server to start
echo
"Waiting for Jupyter Notebook server to open port
${
port
}
..."
echo
"TIMING - Starting wait at:
$(
date
)
"
if
wait_until_port_used
"
${
host
}
:
${
port
}
"
60
;
then
echo
"Discovered Jupyter Notebook server listening on port
${
port
}
!"
echo
"TIMING - Wait ended at:
$(
date
)
"
else
echo
"Timed out waiting for Jupyter Notebook server to open port
${
port
}
!"
echo
"TIMING - Wait ended at:
$(
date
)
"
pkill
-P
${
SCRIPT_PID
}
clean_up 1
fi
...
...
This diff is collapsed.
Click to expand it.
template/before.sh.erb
+
3
−
0
View file @
d1dd6453
...
...
@@ -26,6 +26,9 @@
# - $password
# The plain text password used to authenticate to the web server with
# Export the module function if it exists
[[ $(type -t module) == "function" ]]
&&
export -f module
# Find available port to run server on
port=$(find_port)
...
...
This diff is collapsed.
Click to expand it.
template/script.sh.erb
+
11
−
1
View file @
d1dd6453
#!/bin/bash -l
#!/usr/bin/env bash
# Benchmark info
echo "TIMING - Starting main script at: $(date)"
# Set working directory to home directory
cd "${HOME}"
...
...
@@ -13,7 +16,14 @@ module purge
# Load the require modules
module load
<%=
context
.
modules
%>
# List loaded modules
module list
<%-
end
-%>
# Benchmark info
echo "TIMING - Starting jupyter at: $(date)"
# Launch the Jupyter Notebook Server
set -x
jupyter notebook --config="${CONFIG_FILE}"
<%=
context
.
extra_jupyter_args
%>
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