title: Does importing a Python file also import the imported files into shell?
body: <p>I am running Python 3.6.2 and trying to import other files into my shell prompt as needed. I have the following code inside my_file.py.</p>
  
  <pre><code>import numpy as np
  def my_file(x):
      s = 1/(1+np.exp(-x))
      return s
  </code></pre>
  
  <p>From my 3.6.2 shell prompt I call</p>
  
  <pre><code>from my_file import my_file
  </code></pre>
  
  <p>But in my shell prompt if I want to use the library numpy I still have to import numpy into the shell prompt even though I have imported a file that imports numpy. Is this functionality by design? Or is there a way to import numpy once?</p>