title: Importing Python module from Bash
body: <p>I am launching a Python script from the command line (Bash) under Linux. I need to open Python, import a module, and then have lines of code interpreted. The console must then remain in Python (not quit it). How do I do that?</p>
  
  <p>I have tried an alias like this one:</p>
  
  <pre><code>alias program="cd /home/myname/programs/; python; import module; line_of_code"
  </code></pre>
  
  <p>But this only starts python and the commands are not executed (no module import, no line of code treated).</p>
  
  <p>What is the proper way of doing this, provided I need to keep Python open (not quit it) after the script is executed?
  Many thanks!</p>