Skip to content

%%invalid doesn't show error for Python3 kernel #1651

@dsblank

Description

@dsblank

When using the latest Python3 released kernel and code, and entering an invalid magic, the error does not show in the notebook, but does show in the console.

For example: "%%invalid" gives:

screenshot from 2016-08-02 19 23 58

$ jupyter notebook[I 19:23:33.376 NotebookApp] The port 8888 is already in use, trying another port.
[I 19:23:33.382 NotebookApp] Serving notebooks from local directory: /home/dblank/Desktop/ProgLangBook
[I 19:23:33.382 NotebookApp] 0 active kernels 
[I 19:23:33.382 NotebookApp] The Jupyter Notebook is running at: http://localhost:8889/
[I 19:23:33.382 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
Created new window in existing browser session.
[I 19:23:42.921 NotebookApp] Creating new notebook in 
[I 19:23:43.819 NotebookApp] Kernel started: ed5538fb-adb4-41f2-86f2-e8f8d1d58cb7
[W 19:23:43.835 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20160802192333 (127.0.0.1) 10.31ms referer=http://localhost:8889/notebooks/Untitled.ipynb?kernel_name=python3
[IPKernelApp] WARNING | Config option `confirm_exit` not recognized by `ZMQInteractiveShell`.
ERROR:root:Cell magic `%%invalid` not found.

Versions:

$ pip3 list
alabaster (0.7.6)
apparmor (2.8.95)
appnope (0.1.0)
apturl (0.5.2ubuntu4)
autopep8 (1.2)
auxlib (0.0.36)
Babel (2.0)
backports-abc (0.4)
backports.shutil-get-terminal-size (1.0.0)
bottle (0.12.9)
Brlapi (0.6.1)
bsddb3 (6.0.1)
cairocffi (0.7.2)
CairoSVG (1.0.20)
calysto (1.0.1)
calysto-lc3 (0.2)
calysto-processing (0.8.2)
calysto-prolog (0.8.3)
calysto-scheme (1.0.8)
certifi (14.5.14)
cffi (1.6.0)
chardet (2.2.1)
checkbox (0.17.7.dev0)
checkbox-ng (0.3)
checkbox-support (0.2)
codecov (1.6.3)
colorama (0.2.5)
command-not-found (0.3)
conda (4.0.5)
configproxy (0.0.3)
coverage (4.0.3)
cycler (0.10.0)
decorator (4.0.10)
defer (1.0.6)
distribute (0.7.3)
Django (1.7.6)
docopt (0.6.1)
docutils (0.12)
entrypoints (0.2.2)
eval-kernel (0.5)
fake-factory (0.5.0)
familysearch-python-sdk-opensource (1.0.3)
feedparser (5.1.3)
filemagic (1.6)
Flask (0.10.1)
flit (0.7.1)
friends (0.1)
ghp-import (0.4.1)
gnureadline (6.3.3)
html2text (2015.6.21)
html5lib (0.999)
httplib2 (0.8)
infi.docopt-completion (0.2.1)
ipykernel (4.3.1)
ipyparallel (4.0.2)
ipython (5.0.0)
ipython-genutils (0.1.0)
ipywidgets (5.2.2)
itsdangerous (0.24)
IVisual (0.1.90)
jedi (0.9.0)
Jinja2 (2.8)
jsobject (0.1)
jsonschema (2.5.1)
jupyter (1.0.0)
jupyter-client (4.3.0)
jupyter-console (5.0.0)
jupyter-core (4.1.0)
jupyter-pip (0.3)
jupyterhub (0.6.1)
language-selector (0.1)
LibAppArmor (2.8.95)
log-colorizer (1.8.1)
louis (2.5.3)
lxml (3.3.3)
Mako (0.9.1)
MarkupSafe (0.23)
matlab-kernel (0.9.4)
matplotlib (1.5.1)
meta (-)
metakernel (0.13.3)
metakernel-bash (0.11.3)
metakernel-python (0.11.3)
mistune (0.7.3)
mock (1.3.0)
mysqlclient (1.3.6)
nbconvert (4.2.0)
nbformat (4.0.1)
nbgrader (0.2.2)
nose (1.3.7)
notebook (4.2.1)
numpy (1.11.1)
numpydoc (0.5)
oauthlib (0.6.1)
octave-kernel (0.13.1)
onboard (1.0.1)
oneconf (0.3.7.14.4.1)
pamela (0.2.1)
pandas (0.15.2)
path.py (8.1.2)
pbr (1.5.0)
pep8 (1.6.2)
pexpect (4.2.0)
pg8000 (1.10.2)
pickleshare (0.7.3)
pika (0.9.13)
Pillow (2.6.1)
pip (8.1.2)
piston-mini-client (0.7.5)
plainbox (0.5.3)
pony (0.6.4)
prettytable (0.7.2)
prompt-toolkit (1.0.3)
protobuf (3.0.0b2)
psutil (4.1.0)
psycopg2 (2.4.5)
ptyprocess (0.5.1)
py (1.4.31)
py3exiv2 (0.1.0)
pycosat (0.6.1)
pycparser (2.14)
pycrypto (2.6.1)
pycurl (7.19.3)
pydot (1.0.29)
pyexpect (1.0.9)
Pygments (2.1.3)
pygobject (3.12.0)
PyICU (1.8)
pyinotify (0.9.6)
pymatbridge (0.5.2)
pymongo (3.2)
pypandoc (1.0.1)
pyparsing (2.1.4)
pyreadline (2.0)
pytest (2.9.1)
pytest-cov (2.2.1)
python-apt (0.9.3.5ubuntu2)
python-dateutil (2.4.2)
python-debian (0.1.21-nmu2ubuntu2)
python-qt5 (0.1.8)
pytz (2014.10)
pyxdg (0.25)
PyYAML (3.11)
pyzmq (15.3.0)
qtconsole (4.2.1)
requests (2.10.0)
scipy (0.17.1)
setuptools (25.1.3)
simplegeneric (0.8.1)
simplejson (3.6.5)
simplepam (0.1.5)
six (1.10.0)
skulpt-python (0.9.3)
snowballstemmer (1.2.0)
software-center-aptd-plugins (0.0.0)
Sphinx (1.3.1)
sphinx-bootstrap-theme (0.4.7)
sphinx-rtd-theme (0.1.8)
SQLAlchemy (1.0.14)
svgwrite (1.1.8)
tensorflow (0.9.0)
terminado (0.6)
testpath (0.2)
Theano (0.8.2)
thin-client-config-agent (0.8)
tornado (4.4.1)
tornado-systemd (1.0.1)
traitlets (4.2.2)
ubuntu-drivers-common (0.0.0)
ufw (0.34-rc-0ubuntu2)
unattended-upgrades (0.1)
unity-scope-audacious (0.1)
unity-scope-calculator (0.1)
unity-scope-chromiumbookmarks (0.1)
unity-scope-clementine (0.1)
unity-scope-colourlovers (0.1)
unity-scope-devhelp (0.1)
unity-scope-firefoxbookmarks (0.1)
unity-scope-gdrive (0.7)
unity-scope-gmusicbrowser (0.1)
unity-scope-gourmet (0.1)
unity-scope-guayadeque (0.1)
unity-scope-manpages (0.1)
unity-scope-musique (0.1)
unity-scope-openclipart (0.1)
unity-scope-texdoc (0.1)
unity-scope-tomboy (0.1)
unity-scope-virtualbox (0.1)
unity-scope-yelp (0.1)
unity-scope-zotero (0.1)
urllib3 (1.7.1)
usb-creator (0.2.23)
virtkey (0.63.0)
virtualenv (15.0.1)
wcwidth (0.1.7)
wdb (2.1.9)
wdb.server (2.1.9)
webcolors (1.5)
Werkzeug (0.11.3)
wheel (0.29.0)
widgetsnbextension (1.2.6)
xdiagnose (3.6.3build2)
xkit (0.0.0)
% jupyter kernelspec list
Available kernels:
  simplekernel         /home/dblank/.ipython/kernels/SimpleKernel
  calico_java          /home/dblank/.ipython/kernels/calico_java
  calico_python        /home/dblank/.ipython/kernels/calico_python
  jskernel             /home/dblank/.ipython/kernels/jskernel
  pypyjskernel         /home/dblank/.ipython/kernels/pypyjskernel
  python2              /home/dblank/.ipython/kernels/python2
  scala211             /home/dblank/.ipython/kernels/scala211
  simple_kernel        /home/dblank/.ipython/kernels/simple_kernel
  calysto_scheme       /usr/local/share/jupyter/kernels/calysto_scheme
  iocaml               /usr/local/share/jupyter/kernels/iocaml
  metakernel_bash      /usr/local/share/jupyter/kernels/metakernel_bash
  metakernel_python    /usr/local/share/jupyter/kernels/metakernel_python
  python3              /usr/local/share/jupyter/kernels/python3
  skulpt_python        /usr/local/share/jupyter/kernels/skulpt_python

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions