Open coatless opened 3 months ago
Wow, interesting 👀
Can you say more about how you triggered that call to reticulate::repl_python()
? I can't figure out how to get that to happen.
If I have a polyglot .qmd
and I use, say, Cmd+Shift+Enter to send lines of code to the console for execution, I see the code execute in the correct console (R in the R console, Python in the Python console) and both plots in the Plots pane:
A few videos:
When saved in a project:
https://github.com/posit-dev/positron/assets/833642/a21ee67b-99f0-432f-bc18-18b39b1d621b
Empty/untitled document (this sometimes won't render when saying reticulate
environment has "no")
https://github.com/posit-dev/positron/assets/833642/f78d3b52-7f8e-4a9f-a88c-93a387dd09bd
I suppose another question is: what environment is reticulate using if its not detecting the default being available?
Ah, you were clicking the "Run Cell" button! I believe this will take a PR to the Quarto extension sort of along these lines to fix: https://github.com/quarto-dev/quarto/pull/436 We'll need to navigate whether to go through reticulate at all for interactive code execution. (Rendering the document will of course have to go through reticulate.) Related to the second bullet in https://github.com/posit-dev/positron/issues/1646#issuecomment-2135993785.
As a short term workaround, you can use use Cmd+Shift+Enter to send lines of code to the console for execution, although for Python then you are running into the first bullet at https://github.com/posit-dev/positron/issues/1646#issuecomment-2135993785.
Please do add anything to that other issue that you think is relevant. We'll keep this one open as a specific case to check when we make changes to the Quarto extension.
@juliasilge role-playing the student and newly minted DS analyst with a button > keyboard shortcut mindset.
Positron Version:
Positron Version: 2024.06.1 (Universal) build 54 Code - OSS Version: 1.90.0 Commit: 5115c73e0670f39139e55eeedf0717b468a0658d Date: 2024-07-03T03:51:33.756Z Electron: 29.4.0 Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Darwin arm64 23.5.0
Steps to reproduce the issue: