I like the plot pane in VSCode, and I wish to use it by default. I also love how GLMakie plots scale up and down in size as I ajust the width of the plotting pane.
But sometimes I want to interact with the plot, for data-inspection, panning or zooming. I used to be able to call current_figure() in the buildt-in terminal, and I would get a standalone window that is interactable. Now, it just creates a new plot in the plotting pane.
I know that I can change the backend to WGLMakie to get interactivity in the build-in plotting pane, but
It seems less responsive and stable,
When interacting with a plot, it is nice to have the standalone window fill the screen, and
I prefer not having to juggle two backends.
So is there a way to get a single plot in the standalone window, while still using the buildt-in plot pane by default?
from the script, I get a new plot in the plot-pane. So I can not see any difference between calling Makie.inline!(false) and Makie.inline!(true), before calling current_figure() from the script.
The other option would be to call e.g. display(MakieDisplay(), p) (for some value of MakieDisplay), which should force the display system to circumvent the VSCode display.
So it seems like the fallback IO channel does not work as desired. So I would have to call display with the correct display channel. But I have no idea how to list available IO channels, and a quick google-search got me no further.
So I restarted VSCode for unrelated reasons, and now I get the standalone window when sending the plotting-command to the terminal. This is the behaviour described in the original post. Weird…
So then I am back to evaluating lines of a script to send the plot to the plot pane, and sending it to the terminal for interaction.
It indeed feels like a buggy hacky way to do things. But it works great for me.
Reminds me of a meme about some changelog saying a bug was fixed where the CPU would overheat with a certain command, and someone commenting that that was how they liked heating their room without getting up, and asking for a way to keep the old behaviour xD