# 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:** 6

<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 22, 2020, 12:18pm UTC](https://discourse.slicer.org/t/segmentation-in-jupyter-notebook/13583/6 "2020-09-22T12:18:38Z")

</div>

This topic should help:

> [@Controlling brush diameter increment when using Shift+Scroll](https://discourse.slicer.org/t/controlling-brush-diameter-increment-when-using-shift-scroll/4247/10):
>
> Good. I guess not re-creating the segment editor widget fixed the selection reset issue. Brush parameters are shared between paint and erase effects, so it is a common parameter, which need to be set by using setCommonParameter method: effect.setCommonParameter("BrushDiameterIsRelative", "0") effect.setCommonParameter("BrushAbsoluteDiameter", newDiam)

---

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