[IPython-dev] [IPython-User] Adding IPython to Dock on MacOSX
b.telenczuk at biologie.hu-berlin.de
Mon Jan 16 09:16:00 EST 2012
Thanks for your feedback. It is relatively easy to modify the luncher so that ipython starts in a directory of your choice. You can add the following script to the Resources subdirectory (ipysetup.py):
import sys, os
and modify the IPythonQt script, so that it reads:
import os, sys
execdir = os.path.dirname(sys.argv)
resdir = os.path.join(os.path.dirname(execdir), "Resources")
setup_script = os.path.join(resdir, 'ipysetup.py')
exectutable = '/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/ipython'
arguments = [exectutable, 'qtconsole',
'--InteractiveShellApp.file_to_run=%s' % setup_script]
os.execve(exectutable, arguments, os.environ)
I should also mention that the luncher was inspired by a similar luncher for IDLE (installed through MacPorts).
On 15.01.2012, at 04:17, Fernando Perez wrote:
> On Fri, Jan 13, 2012 at 8:51 PM, Brian Granger <ellisonbg at gmail.com> wrote:
>> On Fri, Jan 13, 2012 at 1:23 PM, Aaron Meurer <asmeurer at gmail.com> wrote:
>>> You ought to ship something like this. You should also do it for the
>>> notebook. The benefit there is that in addition to having a nice icon
>>> to double click, you can set it so that double clicking on a .ipnb
>>> file opens the notebook.
>> Yes, that would be great.
> Note that before doing this, we'll need to add to the dashboard:
> - the ability to move around the filesystem.
> - a 'shutdown' button.
> In its current form, having a launcher wouldn't do much good, as the
> dashboard would always be stuck in the starting directory and there
> would be no way to stop the server.
> Those are eminently doable, we'll just need to get to them before
> considering a GUI launcher.
Institute for Theoretical Biology
Humboldt University of Berlin, Germany
More information about the IPython-dev