Skip to content

Make it obvious that cell execution has failed (now output might be collapsed, hiding problem away) #88

Closed
@yarikoptic

Description

@yarikoptic

Steps to reproduce the problem

I am a newcomer to EIN and to try it I opened some elderly notebook
where first cell lead to ImportError, but instead of the traceback I
got only
.
which gave me an impression that everything is alright, but subsequent
cell failed to run for a completely confusing reason if I would assume
that previous cell ran Ok.

When I found out that I could expand the output (C-c C-e) -- only then
I saw that there was an ImportError raised.

So, it would be cool if 'Failed' cells could be easily
detected. Possible resolutions:

Expected output

  • Instead of '.', in collapsed mode, output str representation of the
    exception, e.g.

    ImportError: No module named pandas

  • may be color-code that cell prompt, i.e. make 'In [X]' red?

Your IPython configuration

  1. What is your IPython version? (run ipython --version):

0.13.1

  1. How do you start IPython? (e.g., ipython notebook --port 9999):

    ipython notebook --pylab=inline

System info:

("EIN system info" :emacs-version "GNU Emacs 23.4.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.10)\n of 2012-04-07 on trouble, modified by Debian" :emacs-bzr-version nil :window-system x :emacs-variant nil :os
 (:uname "Linux novo 3.2.0-3-amd64 #1 SMP Thu Jun 28 09:07:26 UTC 2012 x86_64 GNU/Linux\n" :lsb-release "No LSB modules are available.\nDistributor ID: Debian\nDescription:    Debian GNU/Linux testing (wheezy)\nRelease: testing\nCodename:  wheezy\n")
 :image-types
 (svg png gif tiff jpeg xpm postscript xbm pbm)
 :image-types-available
 (svg png gif tiff jpeg xpm postscript xbm pbm)
 :ein
 (:version "0.2.0alpha0.a1466a1" :source-dir "/home/yoh/proj/misc/emacs-ipython-notebook/lisp/")
 :lib
 ((:name "websocket" :path "~/proj/misc/emacs-websocket/websocket.el" :featurep t :version-var websocket-version :version "1.0")
  (:name "auto-complete" :path nil :featurep nil :version-var nil :version nil)
  (:name "mumamo" :path nil :featurep nil :version-var nil :version nil)
  (:name "auto-complete" :path nil :featurep nil :version-var nil :version nil)
  (:name "popup" :path nil :featurep nil :version-var nil :version nil)
  (:name "fuzzy" :path nil :featurep nil :version-var nil :version nil)
  (:name "pos-tip" :path nil :featurep nil :version-var nil :version nil)
  (:name "python" :path "/usr/share/emacs/23.4/lisp/progmodes/python.elc" :featurep t :version-var nil :version nil)
  (:name "python-mode" :path "~/deb/gits/python-mode.bzr2/python-mode.el" :featurep t :version-var nil :version nil)
  (:name "markdown-mode" :path "/usr/share/emacs23/site-lisp/emacs-goodies-el/markdown-mode.elc" :featurep nil :version-var nil :version nil)
  (:name "smartrep" :path nil :featurep nil :version-var nil :version nil)
  (:name "anything" :path nil :featurep nil :version-var nil :version nil)
  (:name "helm" :path nil :featurep nil :version-var nil :version nil)))

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions