title: Change path in every IPython notebook
body: <p>I would like to change the path for every notebook that is loaded for an IPython profile. I have the following directory structure on Mac OS X:</p>
  
  <pre><code>/Users/user/project
  ├── main.py
  ├── reqs
  ├── notebooks
  ├── profile
  └── ve, requirements.txt...
  </code></pre>
  
  <p>On this profile, I want to show the user the notebooks that are in the <code>notebook</code> folder, add this root folder to the path, and preload the <code>main</code> and <code>reqs</code> modules there.</p>
  
  <p>I created a <code>profile</code> folder, and I run IPython like so:</p>
  
  <pre><code>$ ./ve/bin/ipython notebook --profile-dir=`pwd`/profile
  </code></pre>
  
  <p>I added the following to the file <code>profile/startup/00-setup.py</code></p>
  
  <pre><code>c = get_config()
  
  import os, sys
  
  # Modify the path to include the core files
  cur_folder = os.path.dirname(os.path.realpath(__file__))
  sys.path.append('{}/../..'.format(cur_folder))
  
  # Preload some modules
  from main import *
  from reqs import *
  </code></pre>
  
  <p>But somehow this doesn't have any effects, and I don't see any errors when it launches.</p>
  
  <p>I found the question <a href="https://stackoverflow.com/questions/15680463/change-ipython-working-directory">Change IPython working directory</a> to be relevant, but in my case the path I want to add is different than the notebooks folder.</p>
  
  <p>Thanks</p>