posit-dev / positron

Positron, a next-generation data science IDE
Other
1.18k stars 32 forks source link

Specify the specific version required for ipykernel #3740

Open Vinnish-A opened 3 days ago

Vinnish-A commented 3 days ago

Dear developers and maintainers, I have the highest respect for your outstanding work.

When I ran a test on python version 3.6.2 with jupyter, I was told that I needed to upgrade ipykernel to connect to the console. Positron reminds me that I need to upgrade ipykernel, but doesn't report the minimum version required, and the automatic installation that the ide tried afterwards undoubtedly failed, after all, 3.6 is indeed a bit outdated.

Nonetheless, I think the minimum version required to report that allows users to install themselves in the terminal is needed.

Thank you for your attention and have a great day!

jthomasmock commented 3 days ago

Thanks for the kind words and interest @Vinnish-A !

We currently support Python 3.8 to 3.12 as seen in the Wiki: https://github.com/posit-dev/positron/wiki#python-prerequisites -- that may be the specific issue you are facing right now.

seeM commented 2 days ago

Thank you for the kind words and for the feedback!

As Tom mentioned, we only support Python >= 3.8. If you were able to select a Python 3.6 interpreter, that is actually a bug! Could you please share more about your Python 3.6 environment? How was it installed (homebrew, conda, etc), and was it a virtual environment?

We could also include the minimum IPyKernel version in the prompt to install/upgrade it.

Vinnish-A commented 2 days ago

Of course, I am very willing to report to you the specific situation during the use process.

First of all, it's very strange that yesterday I could still automatically find and select the Python 3.6.2 interpreter installed in a conda environment through the button in the top right corner of Positron. However, when I tried to reproduce this issue today, Python 3.6.2 no longer appears in the options for automatic search.

Although I can currently find it by setting the Python 3.6.2 as the default interpreter in settings, due to the lack of a suitable IPyKernel, Python will fail to start, which means it cannot be used. This is strange because I am sure that yesterday I did run a program in an ipynb file using this Python 3.6.2 , as I only configured Keras in this version of Python.

But no matter what, this problem seems like it shouldn't have occurred, but now it's gone, hopefully we can encounter it again in the future.

seeM commented 1 day ago

Glad it's sorted for now. Is it possible that you had set Python 3.6.2 as the default interpreter in settings the first time too, and that caused it to show in the select interpreter menu?