<div dir="ltr">Looks like throwing together a startup script in<div><br></div><div>  ~/.ipython/profile_default/startup/</div><div><br></div><div>did the trick. Sorry for the bother!</div><div class="gmail_extra">

<br><br><div class="gmail_quote">On Sun, Jul 28, 2013 at 3:52 PM, Andrey Fedorov <span dir="ltr"><<a href="mailto:anfedorov@gmail.com" target="_blank">anfedorov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">



<div dir="ltr">I'd like to run an ipython notebook server with a custom env setup script which runs when a kernel starts up that allows it to access the Google App Engine data store (mimicking the <font color="#000000" face="Arial, Liberation Sans, DejaVu Sans, sans-serif"><span style="font-size:14px;line-height:18px"><a href="https://googleappengine.googlecode.com/svn/trunk/python/google/appengine/tools/remote_api_shell.py" target="_blank">remote_api_shell.py</a> tool). It needs to set some authentication variables and</span></font><span style="line-height:18px;font-size:14px;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif"> and modify the namespace it runs in.</span><div>




<span style="line-height:18px;font-size:14px;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif"><br></span></div><div><font color="#000000" face="Arial, Liberation Sans, DejaVu Sans, sans-serif"><span style="font-size:14px;line-height:18px">Is there functionality to customize a notebook installation this way? If not, could someone point me to where in the code the ipython kernel is created when a new notebook is made?</span></font></div>




<div><font color="#000000" face="Arial, Liberation Sans, DejaVu Sans, sans-serif"><span style="font-size:14px;line-height:18px"><br></span></font></div><div><font color="#000000" face="Arial, Liberation Sans, DejaVu Sans, sans-serif"><span style="font-size:14px;line-height:18px">Cheers,</span></font></div>




<div><font color="#000000" face="Arial, Liberation Sans, DejaVu Sans, sans-serif"><span style="font-size:14px;line-height:18px">Andrey</span></font></div></div>
</blockquote></div><br></div></div>