title: Running profile startup files in an embedded IPython instance
body: <p>I want to use an embedded IPython shell with a user_ns dictionary and a my profile configuration (ipython_config.py and the startup files). The purpose is to run a Django shell with models imported on startup. django-extensions implements a command called shell_plus that does this:</p>
  
  <p><a href="https://github.com/django-extensions/django-extensions/blob/master/django_extensions/management/commands/shell_plus.py" rel="noreferrer">https://github.com/django-extensions/django-extensions/blob/master/django_extensions/management/commands/shell_plus.py</a></p>
  
  <pre><code>from IPython import embed
  embed(user_ns=imported_objects)
  </code></pre>
  
  <p>The problem is that this does not load my startup files. embed() calls load_default_config() which I figure loads ipython_config.py. </p>
  
  <p>How do I make the embedded IPython instance run my profile startup files?</p>