You can create interactive Python notebooks to run Slicer code and show resulting text data or slicer/3D view content in the notebook. Great for experimenting and sharing code and results with others.
See an example notebook here, which shows loading of a sample data set, display of a slice view, creation and display of a surface model. See information about how to set up and use notebooks here.
There are still a number of limitations (currently the extension is only available for Windows - will be fixed within a week; auto-complete is not implemented yet; display options are limited, etc.), but it would be great to hear from you, to keep us motivated and help us decide where to focus our efforts.
We also added inspection (press Shift-Tab) to get quick documentation on a Python methods. Currently, limitation is that documentation can only retrieved for native Python code, but we’ll work on extending this to wrapped C++ methods, too (you can track progress of this task here).