# Segmentation in Jupyter notebook

**URL:** <https://discourse.slicer.org/t/segmentation-in-jupyter-notebook/13583>\
**Category:** Development\
**Tags:** segmentation, python, jupyter\
**Created:** [September 21, 2020, 9:41am UTC](https://discourse.slicer.org/t/segmentation-in-jupyter-notebook/13583 "2020-09-21T09:41:05Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [September 21, 2020, 2:27pm UTC](https://discourse.slicer.org/t/segmentation-in-jupyter-notebook/13583/4 "2020-09-21T14:27:04Z")

</div>

This topic should help:

> [@Shortcut for Sphere brush](https://discourse.slicer.org/t/shortcut-for-sphere-brush/13460/2):
>
> Instead of creating a new widget, refer to the Segment Editor module’s widget: segmentEditorWidget = slicer.modules.segmenteditor.widgetRepresentation().self().editor paintEffect = segmentEditorWidget.effectByName("Paint") paintEffect.setCommonParameter("BrushSphere", 1) # enable paintEffect.setCommonParameter("BrushSphere", 0) # disable

---

_[View the full topic](https://discourse.slicer.org/t/segmentation-in-jupyter-notebook/13583)._
