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

No longer able to select kernel for Jupyter notebook #5467

Closed
Mjboothaus opened this issue Aug 31, 2021 · 25 comments · Fixed by #5498
Closed

No longer able to select kernel for Jupyter notebook #5467

Mjboothaus opened this issue Aug 31, 2021 · 25 comments · Fixed by #5498
Assignees
Labels
feature: vscode-extension Having to do with VS Code extensions. groundwork: awaiting deployment team: IDE type: bug Something isn't working

Comments

@Mjboothaus
Copy link

Bug description

I have a environment defined in .gitpod.yml file that creates a conda Python environment (including Jupyter notebooks). It has been working fine for a while now.

Steps to reproduce

When I fired up Gitpod today (from https://github.com/DataBooth/db-hello-gitpod) I can no longer select a Jupyter kernel.

This is the workspace instance - https://green-bass-o31gml56.ws-us15.gitpod.io

I tried stopping and starting the workspace and the behaviour is reproducible.

Expected behavior

When you click Select Kernel within the notebook interface within VS Code you normally can choose from a list of (Python) environments -- but there are now no choices.

Example repository

https://github.com/DataBooth/db-hello-gitpod

Anything else?

Really loving Gitpod.

@Mjboothaus
Copy link
Author

So trying to work out what has changed and broken this (as there were no changes in the .gitpod.yml file).

Here are the Editor: Help -> About details:

Version: 1.59.0
Commit: 330c9b35c2f3d95af9192bc1ce23eccc5fcbe808
Date: 2021-08-30T07:53:57.621Z
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Safari/605.1.15

@Mjboothaus
Copy link
Author

So I assume it is something in the Gitpod (custom) VS Code editor build that has broken this functionality. I will try opening the notebooks via jupyter notebook in the command line as a work-a-round.

@Mjboothaus
Copy link
Author

So work-a-round not working at least initially as the notebook via browser is not able to find the kernel.

This might be a Jupyter config issue in this setup - although it is puzzling.

@Mjboothaus
Copy link
Author

So this is certainly a blocker -- I'm wondering where I can see release details for Gitpod releases, VS Code releases etc. in a centralised way so that it is easier to pinpoint what part of the chain has been broken.

@Mjboothaus
Copy link
Author

Mjboothaus commented Sep 1, 2021

Hmmm... still trying to work-a-round:

From Command Palette I tried to Select Interpreter to Start Jupyter server

without success. I also tried to re-install the kernel via:

python -m ipykernel install --user --name=ENV_NAME

which resulted in:

Installed kernelspec ENV_NAME in /home/gitpod/.local/share/jupyter/kernels/ENV_NAME where ENV_NAME is the label I use for my conda environment. But this doesn't seem to have resolved it.

@Mjboothaus
Copy link
Author

Maybe this is related to these types of issues:

microsoft/vscode-jupyter#513

microsoft/vscode-jupyter#2282

@akosyakov akosyakov added feature: vscode-extension Having to do with VS Code extensions. type: bug Something isn't working labels Sep 1, 2021
@csweichel
Copy link
Contributor

/schedule

@roboquat
Copy link
Contributor

roboquat commented Sep 1, 2021

@csweichel: We have more than 16 cards scheduled. Above 0 only scheduler can perform this action. Those are:

In response to this:

/schedule

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@csweichel csweichel added team: workspace Issue belongs to the Workspace team and removed team: IDE labels Sep 1, 2021
@csweichel
Copy link
Contributor

/schedule

@roboquat
Copy link
Contributor

roboquat commented Sep 1, 2021

@csweichel: We have more than 16 cards scheduled. Above 0 only scheduler can perform this action. Those are:

In response to this:

/schedule

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@csweichel csweichel added team: IDE and removed team: workspace Issue belongs to the Workspace team labels Sep 1, 2021
@akosyakov akosyakov self-assigned this Sep 1, 2021
@akosyakov
Copy link
Member

Maybe related to these changes: gitpod-io/workspace-images#461 cc @aledbf @AlexTugarev could it be related?

@jeanp413
Copy link
Member

jeanp413 commented Sep 1, 2021

@Mjboothaus do you have a public repo that I can use and try to reproduce? I can't access https://github.com/DataBooth/db-hello-gitpod

@Mjboothaus
Copy link
Author

Mjboothaus commented Sep 1, 2021 via email

@Mjboothaus
Copy link
Author

Mjboothaus commented Sep 1, 2021 via email

@akosyakov
Copy link
Member

akosyakov commented Sep 2, 2021

@Mjboothaus which version of python extension do you run? Latest from Open VSX? nvm I think i figured it out

@Mjboothaus
Copy link
Author

Mjboothaus commented Sep 2, 2021 via email

@akosyakov
Copy link
Member

Python extension in Open VSX is old and not compatible with VS Code 1.59 anymore. I can upgrade it but it does not seem to fix the problem. I'm looking into whether Select Kernel requires another extension right now or it is misconfiguration in our workspace image.

@Mjboothaus
Copy link
Author

image

@Mjboothaus
Copy link
Author

Thanks @akosyakov -- just looked up the MS Jupyter extension history and it seems some work is happening there currently.

@Mjboothaus
Copy link
Author

Mjboothaus commented Sep 2, 2021

I feel the 2.5 star rating for the extension is a little harsh :)

Oh - so Open VSX is an alternate market place for VS Code extensions...

All I can say is my .gitpod.yml setup was working perfectly for the past month or so and then stopped abruptly on Wed AM Sydney (AEST GMT+10).

Great work the Gitpod.io team is doing!

@akosyakov
Copy link
Member

Oh - so Open VSX is an alternate market place for VS Code extensions...

Yes, I mean there it is out-dated

All I can say is my .gitpod.yml setup was working perfectly for the past month or so and then stopped abruptly on Wed AM Sydney (AEST GMT+10).

VS Code 1.59 was released, but we don't have smoke tests for notebooks yet 🙈

@Mjboothaus
Copy link
Author

Seems I'm smoking... (whether I like it or not) 🚬

@akosyakov
Copy link
Member

akosyakov commented Sep 2, 2021

So we should pbulish python and jupyter notebook extensions which are compatible with 1.59 to Open VSX and list jupyter notebook as allow proposed apis in product.json. I will send PRs. But in the best case I can promise only next Wednesday.

@akosyakov
Copy link
Member

Yes, it helps in testing environments:
Screenshot 2021-09-02 at 11 23 15

Working on fixing publishing to Open VSX.

@Mjboothaus
Copy link
Author

👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: vscode-extension Having to do with VS Code extensions. groundwork: awaiting deployment team: IDE type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants