omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Clashing module

    Pythonista
    2
    2
    1041
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • polymerchm
      polymerchm last edited by

      I noticed tonight that if I run one script using numpy (as np), then run diffferent script where the variable has the same name (no numpy this time), the second script complains about the variable being in the numpy namespace . So.... how do I completely unload all modules and clear the namespaces without rebooting pythonista altogether?

      1 Reply Last reply Reply Quote 0
      • dgelessus
        dgelessus last edited by

        You might want to modify the second script to either del np or assign something else to np before using it. Shouldn't you get a NameError because of the missing variable otherwise?

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB Forums | Contributors