Replies: 2 comments 2 replies
-
Thank you for your great work! It is really beautiful. |
Beta Was this translation helpful? Give feedback.
1 reply
-
This is excellent, Thank you!! It would be interesting to see what users prefer on the "zoom plot" button click ? My vote is plot in new window pop |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
You may have noticed that since 2024.09.0-27, there is a new option to open a plot in an editor tab for viewing! Let’s see how it can be enabled and what to expect when using this feature.
Enable the Feature
By default, the ability to open a plot in an editor is disabled for now. So if you want to try it out, go to Positron’s preferences and search for ‘plots’. The experimental feature will appear and all you need to do is enable it.
If you like editing the preferences JSON file, you can add
"application.experimental.positronPlotsInEditorTab": true
to the file.Opening a Plot in an Editor
Once the feature has been enabled, a new button will appear in the Plots view action bar. It is visible when a plot can be opened in an editor. Render a plot and see if the button is available! It will work with both Python and R plots. Interactive plots that render as HTML aren’t supported at this time.
This is what it looks like when a plot is in an editor. Currently, Positron assigns an id to each plot and that’s what you see in the editor tab title. The plot size and shape does use the same setting that is in the Plots view. So changing the size and shape from the view will also affect any plots in an editor. Right now it’s limited with what you can do with the plot but that will change soon! For now, enjoy viewing the plot in a new light.
Here’s what you can do with the plot as of 2024.10.0:
Screen.Recording.2024-10-18.at.4.14.17.PM.mov
Also, the copy plot to clipboard action had an overhaul. If you invoke it from the command palette (Cmd/Ctrl + Shift + P) while one or more plots are in an editor, you can select which plot you want to copy. The quick pick only appears when there is more than one plot available to copy. Otherwise, it copies the currently selected plot.
Feedback and What’s Next
As this feature gets more exposure, and before it moves out of experimental status, it will get more capabilities. This is what is planned for the future:
If you like what you see in this feature and want to give some feedback, please leave a comment here!
Beta Was this translation helpful? Give feedback.
All reactions