[IPython-dev] error initiating ipython notebook

MinRK benjaminrk@gmail....
Mon Feb 20 09:02:47 CST 2012


Yes, I just saw this, and pushed the fix.  The logic got reversed, so 'if
self.browser' should have been 'if not self.browser'.

On Mon, Feb 20, 2012 at 04:43, Gerardo Lacy Mora <glacycr@gmail.com> wrote:

> Hi!
>
> I am following the development branch for ipython, and seems that the
> problem was with the commit
>
>
> https://github.com/ipython/ipython/commit/2a436aee039c5cf851d045062142371876685ad3
>
> changing back to
>
> if len(self.browser) == 0:
>
> makes my notebook work again...
>
> Cheers,
>
> Gerardo
>
>
>
>
>
> On Sun, Feb 19, 2012 at 11:25 PM, Brian Granger <ellisonbg@gmail.com>wrote:
>
>> By default, the notebook with open a web browser.  There appears to be
>> a problem in that part of the code on your system. Not sure what would
>> cause that failure, but this should get you around it:
>>
>> ipython notebook --no-browser
>>
>> Cheers,
>>
>> Brian
>>
>> On Sun, Feb 19, 2012 at 1:22 PM, Gerardo Lacy Mora <glacycr@gmail.com>
>> wrote:
>> > Hi!
>> >
>> > I am getting the following error when trying to open a notebook:
>> >
>> > Traceback (most recent call last):
>> >   File
>> "/Library/Frameworks/Python.framework/Versions/2.6/bin/./ipython",
>> > line 7, in <module>
>> >     launch_new_instance()
>> >   File
>> >
>> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/IPython/frontend/terminal/ipapp.py",
>> > line 406, in launch_new_instance
>> >     app.start()
>> >   File
>> >
>> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/IPython/frontend/terminal/ipapp.py",
>> > line 376, in start
>> >     return self.subapp.start()
>> >   File
>> >
>> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/IPython/frontend/html/notebook/notebookapp.py",
>> > line 447, in start
>> >     browser = webbrowser.get(self.browser)
>> >   File
>> >
>> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/webbrowser.py",
>> > line 47, in get
>> >     command = _synthesize(browser)
>> >   File
>> >
>> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/webbrowser.py",
>> > line 84, in _synthesize
>> >     cmd = browser.split()[0]
>> > IndexError: list index out of range
>> >
>> > What might be the problem?
>> >
>> > Thanks
>> >
>> > -Gerardo
>> >
>> > _______________________________________________
>> > IPython-dev mailing list
>> > IPython-dev@scipy.org
>> > http://mail.scipy.org/mailman/listinfo/ipython-dev
>> >
>>
>>
>>
>> --
>> Brian E. Granger
>> Cal Poly State University, San Luis Obispo
>> bgranger@calpoly.edu and ellisonbg@gmail.com
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev@scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>
>
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20120220/44ec8a0b/attachment-0001.html 


More information about the IPython-dev mailing list