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

Display active runtime metadata in console pane #5999

Closed
dhruvisompura opened this issue Jan 14, 2025 · 2 comments
Closed

Display active runtime metadata in console pane #5999

dhruvisompura opened this issue Jan 14, 2025 · 2 comments
Assignees
Labels
area: console Issues related to Console category. area: ui Issues related to UI category. enhancement New feature or request

Comments

@dhruvisompura
Copy link
Contributor

dhruvisompura commented Jan 14, 2025

Provide an info button that renders a popup for users to see information about the active runtime version in preparation for multi console sessions. Display information like the runtime version, location, link to the output for that tool, GUID/PID, etc.

Example:

Name: Python 3.12.0 (Venv: .venv)
Path: Full path to the interpreter like ~/quarto-notebooks/.venv/bin/python
GUID: python-2161f610
Language Server port: 50521
Environment Manager: Add tool that is managing python (eg homebrew or pyenv, conda, uv, etc)
Startup: How it was started up? Discovery - How env was chosen? Found cached or started new, etc?
Output Channels: Add clickable link(s) to that kernel/consoles appropriate output channels, and likely the overall language pack output channel
@juliasilge juliasilge added the area: console Issues related to Console category. label Jan 14, 2025
@jthomasmock
Copy link
Contributor

We might also get some carryover/inspiration from the runtimes debugger:

Image

@dhruvisompura dhruvisompura added this to the 2025.02.0 Pre-Release milestone Jan 15, 2025
dhruvisompura added a commit that referenced this issue Jan 31, 2025
Addresses #5999 

Adds a new feature flag called `positron.multipleConsoleSessions`. When
the feature flag is on users can now view details for an active session
by clicking on the new info icon button that lives in the console pane
action bar. A modal popup will render, containing the details of the
session, such as name, state, id, interpreter path, and environment
management tool.

The popup provides a link to the session logs in the output pane. When
clicked, the user is taken to the output pane and shown the kernel
channel for their interpreter.

This is a first pass for the info panel - additional information may be
added based off feedback! Follow up work to add additional links to
other channels is covered in #6149.

### Release Notes

#### New Features

- N/A

#### Bug Fixes

- N/A


### QA Notes
- [ ] Verify the info button is only shown when the feature flag is on
and there is an active session for the console instance
- Note: An issue has been noted where the popup is not rendered if the
console pane height is smaller than the height of the popup (#3061)
- [ ] Verify the session status shown in the popup updates in real time

### Screenshots

**Feature Flag**
<img width="1272" alt="Screenshot 2025-01-29 at 2 19 30 PM"
src="https://github.com/user-attachments/assets/84154034-f7a7-4696-b016-61c4aa3c9370"
/>

**Popup**
<img width="1330" alt="Screenshot 2025-01-29 at 4 38 16 PM"
src="https://github.com/user-attachments/assets/fc819ef6-ad75-4e59-9217-47b97c965b41"
/>

**Real-Time Session State Updates**

https://github.com/user-attachments/assets/16b0b81f-7b48-43d0-9f54-047e6e2af4be
@dhruvisompura dhruvisompura added theme: runtime startup area: ui Issues related to UI category. enhancement New feature or request and removed theme: runtime startup labels Feb 1, 2025
@testlabauto
Copy link
Contributor

Verified Fixed

Positron Version(s) : 2025.02.0-164
OS Version : OSX

Test scenario(s)

Functions for R and python. Idle and busy checked

Link(s) to TestRail test cases run or created:

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: console Issues related to Console category. area: ui Issues related to UI category. enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants