posit-dev / positron

Positron, a next-generation data science IDE
https://positron.posit.co
Other
2.83k stars 91 forks source link

Workbench: Positron Python console slow or fails to start #5340

Open jthomasmock opened 1 week ago

jthomasmock commented 1 week ago

System details:

Positron and OS details:

Positron Version: 2024.11.0 build 140 Code - OSS Version: 1.93.0 Commit: e0d844b031f95acbf89f234a2cce2af9b6721f6c Date: 2024-10-31T14:13:54.986Z Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36

Interpreter details:

Python 3.12.4

Describe the issue:

Re-opening an existing project often fails to start a Python kernel

Steps to reproduce the issue:

  1. Create a test folder mkdir python3-test
  2. python -m venv .venv and then source and install ipykernel
  3. Close and kill the Workbench session, then start a new session and try to select that existing folder.
  4. Note that the Python console appears to be starting up, but sometimes will fail to startup and become functional

Expected or desired behavior:

Python consoles should start up consistently.

Were there any error messages in the UI, Output panel, or Developer Tools console?

petetronic commented 1 week ago

We need to prepare an environment to measure how long these activities are taking and capture more information when it doesn't work / is unacceptably slow.