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.
Open / close console
-
If I have a UI up and running, how can I open or close the console programmatically?
For example, what if I wanted to display a plot, but then return back to the UI...
-
You can use the
console.hide_output()
function for this. -
Since you cannot close the console output once opened, there is no point to to use it in a real app. I cannot get back to my UI from the console. This makes using modules like matplot that display in the console not helpful for a real app.
Is it true it is not useful for a real app?
-
matplotlib
doesn't have to output to the console, that's just one easy option... You could also save the output to a file and show it in anImageView
etc. -
Another option would be to show the console, then use a popover view with a button that lets you return to your app...
-