You can use "pythonw" to launch ipython:
Macbook:~>pythonw ~/anaconda3/bin/ipython
Python 3.6.0 |Anaconda custom (x86_64)| (default, Dec 23 2016,
13:19:00)
Type "copyright", "credits" or "license" for more information.
IPython 5.3.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
Imported history from '/Users/Newville/.pyhist'
In [1]: import wx ; app = wx.App() ; print(app) ; print(wx.PlatformInfo)
<wx.core.App object at 0x10946b558>
('__WXMAC__', 'wxMac', 'unicode', 'unicode-wchar', 'wxOSX',
'wxOSX-cocoa', 'wx-assertions-on', 'phoenix', 'wxWidgets 3.0.3')
In [2]: wx.__version__
Out[2]: '4.0.0a1'
But this "pythonw trick" does not work with "jupyter-console" or
"jupyter-qtconsole" probably because they do some some crazy hacking of the
Python environment and PYTHONEXECUTABLE -- that is kind of the point of
Jupyter, after all.
But, of course, Anaconda is just messing around with us, and they actually
ship an almost-working Python so that "import wx" will work with
~/anaconda3/python.app/Contents/MacOS/python
~/anaconda3/bin/jupyter-console
that is *without* setting PYTHONEXECUTABLE. I've seen actual wx apps work
like this, but haven't tested it in any detail.
···
On Fri, Apr 28, 2017 at 4:20 PM, Umar Yusuf <bintacomputers@gmail.com> wrote:
Another possible bug with Anaconda Python is: wxPython doesn't load/run
via the *Jupyter Notebook* (at least on my setup). Has anybody noticed
this?