# Updated Python FAQ & Slicer API documentation

**URL:** <https://discourse.slicer.org/t/updated-python-faq-slicer-api-documentation/29967>\
**Category:** Development\
**Tags:** documentation\
**Created:** [June 10, 2023, 11:07pm UTC](https://discourse.slicer.org/t/updated-python-faq-slicer-api-documentation/29967 "2023-06-10T23:07:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [June 10, 2023, 11:07pm UTC](https://discourse.slicer.org/t/updated-python-faq-slicer-api-documentation/29967/1 "2023-06-10T23:07:54Z")

</div>

The pull request [PR-7014](https://github.com/Slicer/Slicer/pull/7014) adds the following entries:

- What is the Slicer Python Environment?
- What is the PythonSlicer executable?
- What is the Python Console?
- How to access Slicers Python API via an external program while Slicer is running?

Additionally, it updates the Slicer API to document the following:

- `slicer.app`
- `slicer.mrmlScene`
- `slicer.modules`
- `slicer.moduleNames`

Waiting the changes are finalized and integrated, you may see a preview using these links:

- [Python FAQ | PR-7014 Preview](https://slicer--7014.org.readthedocs.build/en/7014/developer_guide/python_faq.html)
- [Slicer API Documentation | PR-7014 Preview](https://slicer--7014.org.readthedocs.build/en/7014/developer_guide/api.html#native-python-documentation)

Content of the new FAQs entries was adapted in part from these previous post:

- [How to access Slicers Python API via an external program while slicer is running?](https://discourse.slicer.org/t/how-to-access-slicers-python-api-via-an-external-program-while-slicer-is-running/16351/1)
- [Using Slicer and Slicer Modules from Command-Line - #2 by pieper](https://discourse.slicer.org/t/using-slicer-and-slicer-modules-from-command-line/8162/2)
- [Importing slicer libraries separately, outside embedded Python, like in Conda or Jupiter environments - #2 by lassoan](https://discourse.slicer.org/t/importing-slicer-libraries-separately-outside-embedded-python-like-in-conda-or-jupiter-environments/9645/2)
