[IPython-User] making notebook aware of environmental variables
Fri Jan 27 11:26:53 CST 2012
I've had this problem in ubuntu as well. As Fernando said when you create a
shortcut it inherits nothing from your environment. The work around I've
come up with is to define the command as
sh -c "export PYTHONPATH=$PYTHONPATH:/path/to/local/python/scripts/;
/usr/local/bin/ipython notebook --pylab inline"
On Fri, Jan 27, 2012 at 6:16 AM, Angus McMorland <firstname.lastname@example.org> wrote:
> 2012/1/27 Fernando Perez <email@example.com>:
> > 2012/1/27 Zoltán Vörös <firstname.lastname@example.org>:
> >> when I put this into the menus, it fails for some reason.
> > This was the key piece of information you hadn't told us! I was
> > assuming you were starting it from the cmd line...
> > In general, anything you start from a menu/gui launcher does NOT
> > inherit your environment. You can see that by simply making a
> > launcher that calls a shell script that does
> > env > ~/env.txt
> > and you'll see an environment without your personal variables.
> > I think there's a way to set the env. so it's inherited by gui
> > launchers too, but I've never bothered to find out the details. I
> > just keep Tilda on call at F12 and start everything from it.
> Assuming you're using standard Ubuntu (i.e. gnome-based), I think you
> want to define environment variables for the current session into
> .gnomerc in your home directory (create the file if it doesn't already
> exist). From there they get set for the current gnome session.
> > Cheers,
> > f
> > _______________________________________________
> > IPython-User mailing list
> > IPython-User@scipy.org
> > http://mail.scipy.org/mailman/listinfo/ipython-user
> AJC McMorland
> Post-doctoral research fellow
> Neurobiology, University of Pittsburgh
> IPython-User mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-User