Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Access the Console while script is running
-
Is there any way to access the Console while the script is running?
I usually print stuff to the console while debugging or checking for logical errors.
But it is a pain having to stop the script to check out the console output. -
Not for scene modules, but for everything else, yes.
You can drag near the top to switch between editor and console. For ui modules, presenting in a panel on ipad allows you to swap back and forth easily. -
@JonB Building on that, it is possible to do the same with the scene module by presenting it with a scene.SceneView instead of using the scene.run function.
-
I have a script that creates a View that I populate with ui items.
I'm presenting that View with my_view.present('full_screen')
So, I'm getting a full screen with a top bar that has a close button (an X) at the top left.
Is there any way to get to the console in this scenario? -
@ruimac Can't you use myview.present('panel') instead?
-
Oh, great!!! I didn't knew that one.
Well, I only have Pythonista for three days now (and I already coded a large script).
I just have to learn some more.
Thank you :-)Mental note: Use 'panel' while developing and then replace with 'full_screen'. Better yet, make it a global variable and just change it as it is needed :-)