Skip to content

support for initializing conda environment #130

@edublancas

Description

@edublancas

I'm using jupyter-book, bash-kernel, and readthedocs for a project.

I noticed that when starting up the bash kernel, conda wouldn't be properly configured, so I added a conda activate cell at the top of my notebook, but this doesn't work #97. So next thing I thought was that the bash kernel could initialize with conda already configured.

I forked the project and made it work.

Essentially, it adds a new option to the install command:

python -m bash_kernel.install --sys-prefix --conda-activate

This ensures that whenever the kernel starts, it's already configured to use the conda environment where bash_kernel is installed.

Is this something that this project would like to incorporate? Happy to get feedback on what I did and open a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions