Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to use custom Conda kernel in Code-Server #6772

Unanswered
RemiLacroix-IDRIS asked this question in Q&A
Discussion options

Hi,

I am trying to use a custom Conda kernel in Code-Server (i.e. a Conda environment which is not installed in the default path) but I cannot figure out how to do that.

After installing the Python/Jupyter extensions I can see some Conda environments but not the ones I am interested in.

Is it possible to specify the path of specific Conda environment?

Best,
Rémi

You must be logged in to vote

Replies: 3 comments 4 replies

Comment options

@RemiLacroix-IDRIS I might help if you create a minimal reproducible example at https://demo.jupyter.b-data.ch.
i️ At https://demo.jupyter.b-data.ch you can start images from my/b-data's Jupyter Lab docker stacks which provide code-server.

You must be logged in to vote
0 replies
Comment options

Hello,

Sorry for the late answer, I'm not sure how to create an example as we use custom environments that we install locally in non-standard paths.

I haven't been able to start Code Server on the b-data server but I would guess that in that case Code Server is started from inside the environment while what we would like is using an external environment from Code Server.

Best,
Rémi

You must be logged in to vote
1 reply
Comment options

I haven't been able to start Code Server on the b-data server

Just click on the code-server icon.

but I would guess that in that case Code Server is started from inside the environment while what we would like is using an external environment from Code Server.

Correct.

Inside the container you can create virtual environments or even install Miniconda.
👉 These environments can then be used in conjunction with the Jupyter extension.

Comment options

Just click on the code-server icon.

Sorry, I meant when I do that I either get a blank page or an error:

The workbench failed to connect to the server (Error: WebSocket close with status code 1006)

These environments can then be used in conjunction with the Jupyter extension.

We do have this extension and the "Python" extension installed but we haven't be able to figure out how to load an environment which is not detected by default.

You must be logged in to vote
3 replies
Comment options

The workbench failed to connect to the server (Error: WebSocket close with status code 1006)

Highly likely that you are behind a corporate firewall/proxy that does not allow websocket connections.

We do have this extension and the "Python" extension installed but we haven't be able to figure out how to load an environment which is not detected by default.

IMHO auto-detection of Python/Conda environments only works if set up at default or well known locations.

Comment options

IMHO auto-detection of Python/Conda environments only works if set up at default or well known locations

Exactly, what we would like is being able to somehow load an env that isn't detected by default. I tried with the full path but that didn't seem to work.

Comment options

Please check https://github.com/microsoft/vscode-jupyter/discussions or https://github.com/microsoft/vscode-jupyter/issues.

This is related to the extension, not code-server itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /