# Using CurvedPlanarReformat without 3D Slicer GUI

**URL:** <https://discourse.slicer.org/t/using-curvedplanarreformat-without-3d-slicer-gui/28463>\
**Category:** Development\
**Created:** [March 20, 2023, 4:48am UTC](https://discourse.slicer.org/t/using-curvedplanarreformat-without-3d-slicer-gui/28463 "2023-03-20T04:48:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aalihashemi](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@aalihashemi](https://discourse.slicer.org/u/aalihashemi)\
**Post date:** [March 20, 2023, 4:48am UTC](https://discourse.slicer.org/t/using-curvedplanarreformat-without-3d-slicer-gui/28463/1 "2023-03-20T04:48:04Z")

</div>

Hi,  
I want to straighten some arteries using the curved planar reformat algorithm but I don’t want to use 3D Slicer GUI because my code has its own GUI and other parts. Now my question is which way is preferred for this purpose? Should I use Slicelet? If I wanted to just run a python script to use the Slicer’s CPR functions, I have to compile both Slicer and also the Sandbox extension and after that, will I be able to use those functions?

---

<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:** [March 21, 2023, 3:47am UTC](https://discourse.slicer.org/t/using-curvedplanarreformat-without-3d-slicer-gui/28463/2 "2023-03-21T03:47:55Z")

</div>

There are many ways to do this. For example, you can use run Slicer in a docker container and access its features as a web service using its [REST API](https://slicer.readthedocs.io/en/latest/user_guide/modules/webserver.html).
