Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why aren changes to imported Python modules picked up in my STAX job?

0
Posted

Why aren changes to imported Python modules picked up in my STAX job?

0

Use the built-in Python “reload” function if you want to pick up changes made to imported Python modules without having to unregister and register the STAX service (either by stopping STAF and restarting it or by using the SERVICE service to dynamically delete and add the STAX service). Note that there is a “gotcha” in that reload may not impact “from” imports. Reloading allows you to test Python module changes immediately after reloads, without having to unregister the STAX service. Here’s more detailed information about using the built-in Python “reload” function. One of the most common questions Python beginners seem to ask when using modules is: why won’t my imports keep working? The first import works fine, but later imports in STAX jobs seem to have no effect.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123