Skip to content
Snippets Groups Projects
Commit 93ba65c2 authored by Matthew K Defenderfer's avatar Matthew K Defenderfer
Browse files

change to using installed PyCharm modules

parent c2da1bb1
No related branches found
No related tags found
No related merge requests found
...@@ -14,17 +14,17 @@ ...@@ -14,17 +14,17 @@
cluster: "SLURM_CLUSTER" cluster: "SLURM_CLUSTER"
# Title of the app displayed in the Dashboard # Title of the app displayed in the Dashboard
title: "PyCharmCE Singularity" title: "PyCharmCE"
# Description of the app displayed in the Dashboard (can use multi-line string # Description of the app displayed in the Dashboard (can use multi-line string
# and Markdown syntax) # and Markdown syntax)
description: | description: |
This app will launch a JupyterLab server on one or more cores from a given Singularity container. This app will launch the PyCharm IDE in a VNC window.
# Define attribute values that aren't meant to be modified by the user within # Define attribute values that aren't meant to be modified by the user within
# the Dashboard form # the Dashboard form
attributes: attributes:
# Set the corresponding modules that need to be loaded for Jupyter to run # Set the corresponding modules that need to be loaded for PyCharm to run
# #
# @note It is called within the batch job as `module load <modules>` if # @note It is called within the batch job as `module load <modules>` if
# defined # defined
...@@ -42,17 +42,7 @@ attributes: ...@@ -42,17 +42,7 @@ attributes:
value: | value: |
# load any other modules you may need here such as CUDA # load any other modules you may need here such as CUDA
# DO NOT LOAD Anaconda3 or Singularity, these are already # DO NOT LOAD Anaconda3 or Singularity, these are already
# taken care of # available.
# User needs to set the path to the container
container_path:
widget: text_field
label: Path to Container File
# Any extra command line arguments to pass to `singularity exec ...`
extra_singularity_args:
widget: text_field
label: Extra Singularity arguments
bc_num_hours: bc_num_hours:
value: 1 value: 1
...@@ -88,6 +78,15 @@ attributes: ...@@ -88,6 +78,15 @@ attributes:
<%- partitions.each do |p| -%> <%- partitions.each do |p| -%>
- [ "<%= p %>", "<%= p %>" ] - [ "<%= p %>", "<%= p %>" ]
<%- end -%> <%- end -%>
version:
widget: select
label: "PyCharm version"
help: "This defines the version of PyCharm you want to load."
options:
- [ "2022.3.2", "PyCharm/2022.3.2"]
- [ "2019.3.1", "PyCharm/2019.3.1"]
# All of the attributes that make up the Dashboard form (in respective order), # All of the attributes that make up the Dashboard form (in respective order),
# and made available to the submit configuration file and the template ERB # and made available to the submit configuration file and the template ERB
...@@ -100,8 +99,7 @@ attributes: ...@@ -100,8 +99,7 @@ attributes:
# Dashboard # Dashboard
form: form:
- custom_environment - custom_environment
- container_path - version
- extra_singularity_args
- bc_num_hours - bc_num_hours
- bc_partition - bc_partition
- bc_num_gpus - bc_num_gpus
......
...@@ -24,8 +24,6 @@ cd "${HOME}" ...@@ -24,8 +24,6 @@ cd "${HOME}"
# Start Pycharm # Start Pycharm
# #
# export SINGULARITY_BINDPATH='/data,/scratch,/local,/share'
# Load Anaconda3 # Load Anaconda3
module load Anaconda3 module load Anaconda3
...@@ -36,11 +34,7 @@ module list ...@@ -36,11 +34,7 @@ module list
# Launch PyCharm # Launch PyCharm
set -x set -x
# singularity exec --env \"DISPLAY=$DISPLAY\" -B \"/tmp/.X11-unix:/tmp/.X11-unix\" \
# <%= context.extra_singularity_args %> \
# <%= context.container_path %> \
# pycharm
module --ignore-cache load PyCharm/2022.3.2 module load <%= context.version %>
pycharm.sh pycharm.sh
\ No newline at end of file
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