...
mv.setoutput('jupyter') for inline plots | With no setoutput command, and interactive plot window |
---|---|
A Metview session
A Metview Python script can be created, edited and run from within an interactive Metview session in the same way that a Macro can.
From the main user interface, right-click on an empty part of the Metview desktop, select Create New Icon and choose Python Script.
You can either just start writing your Python code, or you can use Metview to help you. Any Metview icons can be dropped into Metview's Code Editor, and the corresponding Python code with be automatically generated for you, giving a convenient way of trying things out interactively before committing them to code.
Pressing the Run button will invoke the Python interpreter (whatever the python3 command runs) and show output in the bottom panel.