Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CADET-RDM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IBG-1
ModSim
CADET
CADET-RDM
Commits
833588e5
Commit
833588e5
authored
Sep 1, 2023
by
Ronald Jäpel
Browse files
Options
Downloads
Patches
Plain Diff
Add "conda deactivate" to prepared conda commands
parent
e22e9295
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
cadetrdm/conda_env_utils.py
+1
-1
1 addition, 1 deletion
cadetrdm/conda_env_utils.py
cadetrdm/initialize_repo.py
+1
-1
1 addition, 1 deletion
cadetrdm/initialize_repo.py
with
2 additions
and
2 deletions
cadetrdm/conda_env_utils.py
+
1
−
1
View file @
833588e5
...
...
@@ -13,5 +13,5 @@ def prepare_conda_env(url: str = None):
shutil
.
copyfileobj
(
response
,
tmp_file
)
print
(
"
Please now run this command in a terminal (Linux) or anaconda shell (Windows):
\n
"
)
print
(
f
"
conda env create -f
{
tmp_file
.
name
}
\n
"
)
print
(
f
"
conda
deactivate && conda
env create -f
{
tmp_file
.
name
}
\n
"
)
return
This diff is collapsed.
Click to expand it.
cadetrdm/initialize_repo.py
+
1
−
1
View file @
833588e5
...
...
@@ -183,4 +183,4 @@ def initialize_from_remote(project_url, path_to_repo: str = None):
environment_path
=
os
.
path
.
join
(
os
.
getcwd
(),
path_to_repo
,
"
environment.yml
"
)
print
(
"
To set up the project conda environment please run this command:
\n
"
f
"
conda env create -f
'
{
environment_path
}
'"
)
f
"
conda
deactivate && conda
env create -f
'
{
environment_path
}
'"
)
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