Back to
Projects List
Simple Editor for Python Scripting
Key Investigators
- Oshane Thomas (Seattle Children's Research Institute, USA)
- Murat Maga (Seattle Children's Research Institute, USA)
- Steve Pieper (Isomics, Inc, USA)
- Sara Rolfe (Seattle Children's Research Institute, USA)
Presenter location: Online
Project Description
A built-in simple text editor for python scripts has been discussed on the Slicer forum before. We would like to discuss design issues around this and hope to have a basic prototype (or two) by the end of PW.
Objective
- Support python syntax highlighting
- Direct highlighted code from the editor to python console (e.g., right click interaction)
- Embed scripts into the scene.
- Code autocompletion.
Approach and Plan
- Describe specific steps of what you plan to do to achieve the above described objectives.
No specific approach has been developed just yet.
Progress and Next Steps
- Describe specific steps you have actually done.
So far we have a brief web-based mock-up from Steve Pieper:
https://github.com/pieper/SlicerEditor
We also have a slicer module mock-up from Oshane Thomas:
https://github.com/oothomas/SlicerMorph/tree/downloading/SlicerEditor
- This week we compared features and issues. Althought we prefered the simplest approach, the features of monaco editor (the core of VS code) convinced us to go with that approach.
- We developed a way to host monaco with out networking
- We determined a small subset of monaco that is small enough to distribute in an extension
- We tested with Sara and Chi and they like it!
- We will make a stand-alone extension that can be used by SlicerMorph and other use cases
Illustrations
Background and References
https://discourse.slicer.org/t/support-python-text-highlighting-in-text-module/34511