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

Add runtime command to show a specific output channel #6149

Open
dhruvisompura opened this issue Jan 28, 2025 · 1 comment
Open

Add runtime command to show a specific output channel #6149

dhruvisompura opened this issue Jan 28, 2025 · 1 comment
Labels
area: console Issues related to Console category.

Comments

@dhruvisompura
Copy link
Contributor

dhruvisompura commented Jan 28, 2025

In #5999, we added a way for users to view session metadata and view logs. The popup has a button to show logs (the <language+version>: Kernel channel). When clicked, the user is shown the logs for their session in the output pane. The underlying mechanism that allows us to do this is the showOutput runtime command in the language packs.

Each language pack has multiple output channels and we are interested in adding a button to show the user the following channels:

  • Language Pack
  • Language Console

We will need to add a new runtime command that the UI can invoke to show a specific output channel.

The PR that added the showOutput command to the positron API: ef0802b).

@dhruvisompura dhruvisompura added this to the 2025.03 Pre-Release milestone Jan 28, 2025
@dhruvisompura dhruvisompura added the area: console Issues related to Console category. label Jan 28, 2025
@jmcphers
Copy link
Collaborator

Note that these output channels are specific to the current implementation of the R and Python language packs -- they both use Jupyter kernels and a supervisor process that populates a Console and Kernel channel. However this should be considered an implementation detail, and not all language packs should be required to have these output channels. A couple of ways we could go about this:

  • these methods could be optional; we have a set of well known channels and the runtime exposes commands to show the ones that it implements
  • the runtime could instead have a method that allows Positron to ask it to return a list of its output channels, which Positron could show in the UI without any prior knowledge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: console Issues related to Console category.
Projects
None yet
Development

No branches or pull requests

2 participants