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

Add env variable and pre kernel launch logic #40

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

ssurbhi560
Copy link
Contributor

@ssurbhi560 ssurbhi560 commented Oct 27, 2022

Description

In this PR, we are providing the ability to set environment variables and add a bash script to run before activating the conda base environment.
Closes #39

You can check this example notebook demonstrating the new feature here.

Status

  • Ready to go

Copy link
Member

@jaimergp jaimergp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments about the logic!

  • We are going to call it pre_conda because it'll run before conda is initialized.
  • The pre_conda contents can contain environment variables and/or the shell script. So no need to check for both at the same time, since we can have none, either or both!

Once we have these modifications, we can run the tests. Thanks!

condacolab.py Outdated Show resolved Hide resolved
condacolab.py Outdated Show resolved Hide resolved
condacolab.py Outdated Show resolved Hide resolved
condacolab.py Outdated Show resolved Hide resolved
condacolab.py Outdated Show resolved Hide resolved
condacolab.py Outdated Show resolved Hide resolved
condacolab.py Outdated Show resolved Hide resolved
condacolab.py Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Revamp env kwarg in new implementation and provide pre launch logic
2 participants