# Saving ITKWidgets settings

**URL:** <https://discourse.itk.org/t/saving-itkwidgets-settings/3821>\
**Category:** Beginner Questions\
**Tags:** itkwidgets\
**Created:** [February 1, 2021, 7:26pm UTC](https://discourse.itk.org/t/saving-itkwidgets-settings/3821 "2021-02-01T19:26:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dchen](https://discourse.itk.org/user_avatar/discourse.itk.org/dchen/32/34_2.png) [@dchen](https://discourse.itk.org/u/dchen)\
**Post date:** [February 1, 2021, 7:26pm UTC](https://discourse.itk.org/t/saving-itkwidgets-settings/3821/1 "2021-02-01T19:26:53Z")

</div>

How can I save and restore the transfer function in ITKWidgets? After I’ve fiddled with the transfer function widgets, I’d like to be able to save the rendering state so that I can restore and share the visualization.

---

<div class="post-metadata">

**Author:** ![phcerdan](https://discourse.itk.org/user_avatar/discourse.itk.org/phcerdan/32/286_2.png) [@phcerdan](https://discourse.itk.org/u/phcerdan)\
**Post date:** [February 1, 2021, 7:35pm UTC](https://discourse.itk.org/t/saving-itkwidgets-settings/3821/2 "2021-02-01T19:35:11Z")

</div>

I had a similar question and raised [this issue in itkwidgets](https://github.com/InsightSoftwareConsortium/itkwidgets/issues/296). I haven’t used itkwidgets lately, so I didn’t check the workarounds from there.

---

<div class="post-metadata">

**Author:** ![matt.mccormick](https://discourse.itk.org/user_avatar/discourse.itk.org/matt.mccormick/32/7_2.png) [@matt.mccormick](https://discourse.itk.org/u/matt.mccormick)\
**Post date:** [February 1, 2021, 8:00pm UTC](https://discourse.itk.org/t/saving-itkwidgets-settings/3821/3 "2021-02-01T20:00:50Z")

</div>

There is work in progress to enable saving the entire viewer state as a [JSON-serializable Python dictionary](https://kitware.github.io/itk-vtk-viewer/config/).

---

<div class="post-metadata">

**Author:** ![dchen](https://discourse.itk.org/user_avatar/discourse.itk.org/dchen/32/34_2.png) [@dchen](https://discourse.itk.org/u/dchen)\
**Post date:** [February 1, 2021, 8:58pm UTC](https://discourse.itk.org/t/saving-itkwidgets-settings/3821/4 "2021-02-01T20:58:34Z")

</div>

Sounds good. I look forward to that functionality being brought to ITKWidgets.
