Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
288 views
in Technique[技术] by (71.8m points)

Visual studio code is stuck on Select Python Interpreter

I am trying to run a jupyter notebook on my Windows machine by using WSL2 to run it in Ubuntu 20.04. It was working perfectly fine yesterday but today it's not selecting a Python Interpreter. I have tried reinstalling Ubuntu, Anaconda and Visual Studio Code.

When I run

code path_to_notebook.ipynb

It opens the window below:

visual_studio_code

After a couple seconds the box (that I've made a yellow square around) pops up. When I click in the "Select Python Interpreter" button and select the interpreter that I want (~/anaconda3/bin/python) nothing happens.

The Select Python Interpreter (red box) also stays there.

What should I do?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I've gotten around the problem by using $ jupyter notebook --no-browser in the terminal.

Unfortunately, this means that additional computer resources are required to run the notebook in my browser over a text editor. But it gets the job done.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...