Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Improve Windows start menu shortcuts #2631

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
4 participants
Contributor

cgohlke commented Nov 29, 2012

Add a shortcut for the IPython Notebook (pylab inline mode) and use more descriptive shortcut names. Tested on Windows 8 so far.

Owner

Carreau commented Nov 29, 2012

Looks sensible to me.

Does it make sens to precise pylab inline in notebook link ? And do another without --pylab inline ?

Seeing the file it looks like

link = pjoin(ip_start_menu, 'IPython Foo.lnk')
cmdbase = suffix(pjoin(scripts, 'ibar'))
if have_setuptools:
   cmdbase += '-script.py'
cmd = '"%s" options' % cmdbase
mkshortcut(pythonw, 'IPython Something', link, cmd, workdir)

Could be refactor using function... but i'm fine as it is now.

Out of curiosity, do the shortcut have icons ?

Contributor

bfroehle commented Nov 29, 2012

Will this have an impact on folks upgrading? That is, will they suddenly have lots of duplicate entries?

What's the benefit of this patch, besides more descriptive filenames? I thought what appeared in the start menu (or whatever) was stored in the file itself.

Owner

Carreau commented Nov 29, 2012

Will this have an impact on folks upgrading? That is, will they suddenly have lots of duplicate entries?
Good point.

What's the benefit of this patch, besides more descriptive filenames? I thought what appeared in the start menu (or whatever) was stored in the file itself.

From the far memories I have about my old windows day, I would say that the visible name is the name of the file.

From a consistence point of view, and user-friendlyness, I think it's better to have more descriptive name.

Contributor

cgohlke commented Nov 29, 2012

@Carreau:
I think it makes sense to have two IPython Notebook shortcuts: without (default) and with "--pylab inline". I'll add it to the PR. Btw, is there a way to get inline pyplot graphs without loading the pylab namespace?
The icon displayed for the IPython shortcuts is the python.exe icon, which is good enough for me. Distinguishable IPython icons would be nicer though.

@bfroehle:
The names appearing in the Windows start menu are the file names of the links. The current short names are not too descriptive.
Yes, there will be duplicate shortcut entries if folks "upgrade" by installing over an existing IPython package, without uninstalling the existing package first, which is bad practice.

There is still a minor issue specific to Windows 8, which does not have a "start menu" but a "start screen". While the start menu of Windows <=7 is hierarchical (there is a separate IPython folder for each Python version), the default start screen of Windows 8 is flat (I currently have 48 IPython entries). However, the start screen can be expanded to show headings (hidden "All apps" screen). A solution would be to include the Python version number and bitness in the IPython shortcut file names.

Owner

Carreau commented Nov 30, 2012

Btw, is there a way to get inline pyplot graphs without loading the pylab namespace?

--InteractiveShellApp.pylab_import_all=<Bool>
    Default: True
    If true, an 'import *' is done from numpy and pylab, when using pylab
Contributor

bfroehle commented Dec 7, 2012

Pinging any Windows developers who could look at this.

Owner

ellisonbg commented Jan 15, 2013

Closing, this is superseded by #2635.

@ellisonbg ellisonbg closed this Jan 15, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment