This script provides a way to have multiple views presented in panel mode at once and allows switching between them using tabs. I tried to patch the
ui.View.presentmethod to automatically redirect panel presents into Multipanel, but apparently that isn't possible because
ui.Viewis a "built-in class" with read-only attributes.
Instead you need to manually add views to the Multipanel - this requires commenting out the
presentcall in the original script, otherwise it will replace the Multipanel. Then run the script as usual, wait until it has finished, and run this line in the interactive console:
<name_of_the_view>is the view object you want to add. (The view needs to be accessible as a global in some way.) Repeat for as many views as you like. In most cases you need to have the option to clear globals on run disabled in Pythonista's settings, almost all scripts stop working if they lose their global environment.