Edit this page

NA-MIC Project Weeks

Back to Projects List

Simple Editor for Python Scripting

Key Investigators

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

  1. Support python syntax highlighting
  2. Direct highlighted code from the editor to python console (e.g., right click interaction)
  3. Embed scripts into the scene.
  4. Code autocompletion.

Approach and Plan

  1. 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

  1. 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

Illustrations

image

image

Background and References

https://discourse.slicer.org/t/support-python-text-highlighting-in-text-module/34511