Skip to content

Commit

Permalink
add more debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Nicklas committed Mar 6, 2018
1 parent 752944a commit 8d4937e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ 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
- Output more debug info.

## [0.4.0] - 2018-03-06
### Added
Expand Down
13 changes: 10 additions & 3 deletions template/script.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@
# Load the required environment
setup_env () {
module purge
export PATH=/usr/local/anaconda-notebook/bin:${PATH}
}
setup_env

Expand Down Expand Up @@ -116,14 +115,22 @@ EOL
)
<%- end -%>

# List available kernels for debugging purposes
# Output debug information
set -x
jupyter kernelspec list
module list
{ set +x; } 2>/dev/null

# Set working directory to notebook root directory
cd "${NOTEBOOK_ROOT}"

# Setup Jupyter Notebook environment
export PATH="/usr/local/anaconda-notebook/bin:${PATH}"

# List available kernels for debugging purposes
set -x
jupyter kernelspec list
{ set +x; } 2>/dev/null

# Launch the Jupyter Notebook server
set -x
jupyter notebook --config="${CONFIG_FILE}"

0 comments on commit 8d4937e

Please sign in to comment.