Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT MERGE] Example: Custom environment #6

Open
wants to merge 1 commit into
base: ood.osc.edu
from
Open
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

use text_area for custom env setup

  • Loading branch information...
ericfranz committed Aug 14, 2018
commit 8227416bf95bae95381b3fdc4010e8f21e1292ad
@@ -11,7 +11,7 @@
cluster: "owens"

# Title of the app displayed in the Dashboard
title: "Jupyter Notebook"
title: "Jupyter Notebook (example)"

# Description of the app displayed in the Dashboard (can use multi-line string
# and Markdown syntax)
@@ -33,7 +33,15 @@ attributes:
# modules: "python/3.5"
# @example Using combination of modules
# modules: "python/3.5 cuda/8.0.44"
modules: "python"
custom_environment:
widget: text_area
label: Environment Setup
value: |
# Restore module environment to avoid conflicts
module restore
# Load required modules
module load python/3.5
# Whether Conda extensions will be available within the Jupyter notebook
# server
@@ -61,7 +69,7 @@ attributes:
# option, then it will not appear in the form page that the user sees in the
# Dashboard
form:
- modules
- custom_environment
- conda_extensions
- extra_jupyter_args
- bc_num_hours
@@ -6,14 +6,7 @@ cd "${HOME}"
#
# Start Jupyter Notebook Server
#

<%- unless context.modules.blank? -%>
# Restore the module environment to avoid conflicts
module restore

# Load the require modules
module load <%= context.modules %>
<%- end -%>
<%= context.custom_environment %>

# Launch the Jupyter Notebook Server
jupyter notebook --config="${CONFIG_FILE}" <%= context.extra_jupyter_args %>
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.