Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
PyCharm OOD
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
RC Data Science
community-ood-sandbox
PyCharm OOD
Commits
93ba65c2
Commit
93ba65c2
authored
2 months ago
by
Matthew K Defenderfer
Browse files
Options
Downloads
Patches
Plain Diff
change to using installed PyCharm modules
parent
c2da1bb1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
form.yml.erb
+14
-16
14 additions, 16 deletions
form.yml.erb
template/script.sh.erb
+1
-7
1 addition, 7 deletions
template/script.sh.erb
with
15 additions
and
23 deletions
form.yml.erb
+
14
−
16
View file @
93ba65c2
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
template/script.sh.erb
+
1
−
7
View file @
93ba65c2
...
@@ -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
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