Omar Andrés Zapata Mesa | 3 Oct 05:47 2015

Running cling kernel

Hi dear ipython developers,
I am trying to run cling kernel but I am getting the next error,

WARNING:root:kernel 82b2aa8f-4df1-47f4-b0cc-fce628f19590 restarted
Traceback (most recent call last):
  File "/usr/lib/python2.7/", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/lib/python2.7/dist-packages/", line 18, in <module>
    from pexpect import replwrap, EOF
ImportError: cannot import name replwrap

I have a fresh install from github repo for ipython and I am using debian sid.

Best regards.
IPython-User mailing list
IPython-User <at>
Thomas Robitaille | 29 Sep 15:59 2015

ANN: numtraits v0.2

Hi everyone,

(apologies if you already saw this on the numpy-discussion list. I am
resending it to the scipy-user and ipython-user mailing lists since
these were down last week)

We have released a small experimental package called numtraits that
builds on top of the traitlets package and provides a NumericalTrait
class that can be used to validate properties such as:

* number of dimension (for arrays)
* shape (for arrays)
* domain (e.g. positive, negative, range of values)
* units (with support for astropy.units, pint, and quantities)

The idea is to be able to write a class like:

    class Sphere(HasTraits):

        radius = NumericalTrait(domain='strictly-positive', ndim=0)
        position = NumericalTrait(shape=(3,))

and all the validation will then be done automatically when the user
sets 'radius' or 'position'.

In addition, tuples and lists can get automatically converted to
arrays, and default values can be specified. You can read more about
the package and see examples of it in use here:

and it can be easily installed with

  pip install numtraits

The package supports both Python 3.3+ and Legacy Python (2.7) :)

At this point, we would be very interested in feedback - the package
is still very young and we can still change the API if needed. Please
open issues with suggestions!


Tom and Francesco
Vasco | 25 Sep 09:44 2015

%matplotlib qt hangs notebook

sometimes when I run %matplotlib qt in the ipython notebook (v4), it is 
indicated that the cell is executed and that the kernel is not busy. 
However, the next cell cannot be executed: there appears a *, as should 
be, but there is no output, the * remains, but the kernel does not look 

This mainly happens when I run the second cell, while the %matplotlib qt 
command is not finished yet.

Is this a known problem? How can I diagnose what is going on? I tried to 
start jupyter with --debug flag, but it does not give any errors or 
messages relating the notebook/kernel that is giving problems.

This problem occurs at both a windowsxp machine with the newest python3 
version from anaconda, as on a ubuntu machine, with
* python '3.4.0 (default, Jun 19 2015, 14:20:21) \n[GCC 4.8.2]'
* matplotlib 1.3.1

Both with ipython4 from pypi

Kind regards,
reckoner | 11 Sep 03:58 2015

Re: Connect to remote kernel on AWS using local qtconsole?

For reference, I posted some code and the solution to this problem here:

Pietro Terna | 3 Sep 23:09 2015


     Hi all,

     what's the substitute of the old magic %R? (I was easily connecting 
Python to R via that magic).

     Best, Pietro


The world is full of interesting problems to be solved!

Home page:
A new book on ABMs:
SLAPP shell for ABMs:
Aaron Watters | 27 Aug 15:05 2015

IPython widget Dict not syncing

I’m playing around with I-Python interactive widgets — very cool!

I’m having trouble passing dictionaries from the Python side to the JS side.
For some reason I can get a List to sync from the python side to the javascript side like so:

Py:    commands = List([], sync=True)

Js:  var commands = this.model.get("commands”);

But the same doesn’t seem to work with Dict

Py:      style = Dict({}, sync=True)

I’m pretty sure I’m using JSON compatible values and I’m changing the top level reference to get traitlets to notice that the value has changed.  I wouldn’t rule out that I’m doing something else dumb, however.

For fun I just changed the code to pass a dictionary wrapped in a list and it worked.  Any idea what is wrong?  Thanks!
  — Aaron Watters

IPython-User mailing list
IPython-User <at>
Reckoner | 24 Aug 22:30 2015

Connect to remote kernel on AWS using local qtconsole?


 By following the instructions listed here:

Running a notebook server — IPython 1.2.1: An Afternoon Hack documentation -

I have been able to connect to a remote notebook server on Amazon AWS via the browser. Can I get to this kernel using   a local qtconsole?  In other words, can I do something like this on the local client:

% ipython qtconsole --kernel <something>

My concern is that the instructions listed above refer to a password and certificate that is required by the browser to connect to the remote server. How would this work with the desired qtconsole? Maybe some kind of tunnel is required to handle this case?

Thanks in advance.

IPython-User mailing list
IPython-User <at>
Akim Demaille | 24 Aug 15:05 2015

Compressed notebooks

Hi Guys,

First of all, congrats on the release!

However, it's hard to get information about this release.  The website is a little terse, and even stops at 3.2.

Is there some plans to add support for compressed notebooks?  I don't particularly thinks this is needed,
however, my package features documentation as notebooks installed in /usr/share/doc.  And debian tools
_love_ to compress about everything that is in /usr/share/doc. So I have to struggle with these tools to be
able to get readable documentation.

However, it is not particularly stupid either to compress these files, and I expect more packages will face
the same problem as I did.  So you might want to consider support for such notebooks?


FWIW, from

> 12.3 Additional documentation
> Any additional documentation that comes with the package may be installed at the discretion of the
package maintainer. Plain text documentation should be installed in the directory
/usr/share/doc/package, where package is the name of the package, and compressed with gzip -9 unless it
is small.
Viktor Ransmayr | 23 Aug 22:35 2015

Fwd: IPython 4.0 on Python 3.4 & Windows 10 - Status Update #3

Please ignore this posting for the moment. - Thomas has helped me to resolve a major issue I had in my setup. - See

I'm planning to start with a 'clean/ fresh' installation, based on the current IPython 4.0/ JUpyter 1.0 documentation & report back to this list.

Thanks for all the support that you provided to me!

With kind regards,


IPython-User mailing list
IPython-User <at>
Viktor Ransmayr | 21 Aug 22:57 2015

IPython 4.0 on Python 3.4 & Windows 10 - Status Update #2

Here's a follow-up to my earlier mail. - Usage of 'ipython qtconsole' and 'ipython --gui=qt5' do not work as advertized:


PS C:\Users\Viktor> ipython --help

Tools for Interactive Computing in Python

    A Python shell with automatic history (input and output), dynamic object
    introspection, easier configuration, command completion, access to the
    system shell and more.  IPython can also be embedded in running programs.


    ipython [subcommand] [options] [-c cmd | -m mod | file] [--] [arg] ...


--gui=<CaselessStrEnum> (InteractiveShellApp.gui)
    Default: None
    Choices: ('glut', 'gtk', 'gtk3', 'osx', 'pyglet', 'qt', 'qt5', 'tk', 'wx')
    Enable GUI event loop integration with any of ('glut', 'gtk', 'gtk3', 'osx',
    'pyglet', 'qt', 'qt5', 'tk', 'wx').


--profile-dir=<Unicode> (ProfileDir.location)
    Default: ''
    Set the profile location directly. This overrides the logic used by the
    `profile` option.

To see all available configurables, use `--help-all`



    ipython qtconsole          # start the qtconsole GUI application
    ipython help qtconsole     # show the help for the qtconsole subcmd


    ipython nbconvert           # convert notebooks to/from other formats

PS C:\Users\Viktor> ipython qtconsole
Traceback (most recent call last):
  File "c:\python34\lib\", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\python34\lib\", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Python34\Scripts\ipython.exe\", line 9, in <module>
  File "c:\python34\lib\site-packages\IPython\", line 118, in start_ipython
    return launch_new_instance(argv=argv, **kwargs)
  File "c:\python34\lib\site-packages\traitlets\config\", line 591, in launch_instance
  File "<string>", line 2, in initialize
  File "c:\python34\lib\site-packages\traitlets\config\", line 75, in catch_config_error
    return method(app, *args, **kwargs)
  File "c:\python34\lib\site-packages\IPython\terminal\", line 305, in initialize
    super(TerminalIPythonApp, self).initialize(argv)
  File "<string>", line 2, in initialize
  File "c:\python34\lib\site-packages\traitlets\config\", line 75, in catch_config_error
    return method(app, *args, **kwargs)
  File "c:\python34\lib\site-packages\IPython\core\", line 386, in initialize
  File "c:\python34\lib\site-packages\IPython\terminal\", line 300, in parse_command_line
    return super(TerminalIPythonApp, self).parse_command_line(argv)
  File "<string>", line 2, in parse_command_line
  File "c:\python34\lib\site-packages\traitlets\config\", line 75, in catch_config_error
    return method(app, *args, **kwargs)
  File "c:\python34\lib\site-packages\traitlets\config\", line 487, in parse_command_line
    return self.initialize_subcommand(subc, subargv)
  File "<string>", line 2, in initialize_subcommand
  File "c:\python34\lib\site-packages\traitlets\config\", line 75, in catch_config_error
    return method(app, *args, **kwargs)
  File "c:\python34\lib\site-packages\traitlets\config\", line 418, in initialize_subcommand
    subapp = import_item(subapp)
  File "c:\python34\lib\site-packages\ipython_genutils\", line 31, in import_item
    module = __import__(package, fromlist=[obj])
ImportError: No module named 'qtconsole'
PS C:\Users\Viktor> ipython --gui=qt5
WARNING: Readline services not available or not loaded.
WARNING: Proper color support under MS Windows requires the pyreadline library.
You can find it at:

Defaulting color scheme to 'NoColor'
Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:44:40) [MSC v.1600 64 bit (AMD64)]
Type "copyright", "credits" or "license" for more information.

IPython 4.0.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.
[TerminalIPythonApp] WARNING | Eventloop or matplotlib integration failed. Is matplotlib installed?
ImportError                               Traceback (most recent call last)
c:\python34\lib\site-packages\IPython\terminal\ in enable_gui(gui, app)
    305         from IPython.lib.inputhook import enable_gui as real_enable_gui
    306         try:
--> 307             return real_enable_gui(gui, app)
    308         except ValueError as e:
    309             raise UsageError("%s" % e)

c:\python34\lib\site-packages\IPython\lib\ in enable_gui(self, gui, app)
    248         self._current_gui = gui
--> 250         app = gui_hook.enable(app)
    251         if app is not None:
    252             app._in_event_loop = True

c:\python34\lib\site-packages\IPython\lib\ in enable(self, app)
    387     def enable(self, app=None):
    388         os.environ['QT_API'] = 'pyqt5'
--> 389         return Qt4InputHook.enable(self, app)

c:\python34\lib\site-packages\IPython\lib\ in enable(self, app)
    364             app = QtGui.QApplication(sys.argv)
    365         """
--> 366         from IPython.lib.inputhookqt4 import create_inputhook_qt4
    367         app, inputhook_qt4 = create_inputhook_qt4(self.manager, app)
    368         self.manager.set_inputhook(inputhook_qt4)

c:\python34\lib\site-packages\IPython\lib\ in <module>()
     23 from IPython.core.interactiveshell import InteractiveShell
---> 24 from IPython.external.qt_for_kernel import QtCore, QtGui
     25 from IPython.lib.inputhook import allow_CTRL_C, ignore_CTRL_C, stdin_ready

c:\python34\lib\site-packages\IPython\external\ in <module>()
     82 else: # use ETS variable
---> 83     from IPython.external.qt import QtCore, QtGui, QtSvg, QT_API

ImportError: No module named 'IPython.external.qt'

In [1]: quit()
PS C:\Users\Viktor>


Any feedback or ideas?

With kind regards,


IPython-User mailing list
IPython-User <at>
Aaron Watters | 21 Aug 22:42 2015

Newbie question about nbextensions

Hi folks!

When I install javascript into nbextensions is that javascript executed for every notebook in that environment?

Or is there some mechanism that only loads the javascript when needed and if so how does it work?

Point me to references if appropriate please.

Thanks!  — Aaron Watters

IPython-User mailing list
IPython-User <at>