Segment Mesher through Jupyter notebook

Hi!
I’m using Jupyter notebook to work with Slicer. I want to create a volumetric mesh of the bone that I’ve already segmented.
Can anyone help me with the code?

Thank you