# Loading python library (embedPy) without restarting kdb/q

**URL:** <https://forum.kx.com/t/loading-python-library-embedpy-without-restarting-kdb-q/14192>\
**Category:** Community Support\
**Tags:** pykx, imported\
**Created:** [April 12, 2025, 5:45am UTC](https://forum.kx.com/t/loading-python-library-embedpy-without-restarting-kdb-q/14192 "2025-04-12T05:45:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![catch22](https://avatars.discourse-cdn.com/v4/letter/c/f1d935/32.png) [@catch22](https://forum.kx.com/u/catch22)\
**Post date:** [April 12, 2025, 5:45am UTC](https://forum.kx.com/t/loading-python-library-embedpy-without-restarting-kdb-q/14192/1 "2025-04-12T05:45:39Z")

</div>

[https://learninghub.kx.com/forums/topic/loading-python-library-embedpy-without-restarting-kdb-q](https://learninghub.kx.com/forums/topic/loading-python-library-embedpy-without-restarting-kdb-q)

Hi guys,

I have one question. I am using embedPy to call python library (user written) in kdb.

Is there way to reload the python libary, after I update the \*.py function in q, without restarting the q process?&nbsp;

Thank you.

---

<div class="post-metadata">

**Author:** ![rocuinneagain](https://sea2.discourse-cdn.com/flex002/user_avatar/forum.kx.com/rocuinneagain/32/287_2.png) [@rocuinneagain](https://forum.kx.com/u/rocuinneagain)\
**Post date:** [April 17, 2025, 1:43pm UTC](https://forum.kx.com/t/loading-python-library-embedpy-without-restarting-kdb-q/14192/2 "2025-04-17T13:43:31Z")

</div>

Using https://github.com/rianoc/qXML as an example details attached in image
