Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.

Ansys Learning Forum Forums Discuss Simulation General Mechanical Clearing the Python shell namespace in Mechanical Scripting Reply To: Clearing the Python shell namespace in Mechanical Scripting

mhorn2
Subscriber
This would also be very useful when importing local modules. I have defined some python functions in a module that I import. If I make any changes to these modules I cannot re-import then to the shell if they have already been imported. In order to re-import the new version of the module the shell needs to be restarted (I think). Thanks!
Update: I found the reload module command in Python 2 which re-loads locally imported modules.
[bingo_chatbox]