à l'aide de ipdb pour déboguer du code python dans une cellule (jupyter ou Ipython)

Je suis en utilisant jupyter (ou Ipython) ordinateur portable avec firefox, et souhaitez déboguer du code python dans la cellule. Je suis " importer ipdb; ipdb.set_trace()' comme une sorte de point d'arrêt, par exemple, mon portable a le code suivant:

a=4
import ipdb; ipdb.set_trace()
b=5
print a
print b

qui, après l'exécution avec Maj+Entrée me donne cette erreur:

--------------------------------------------------------------------------
MultipleInstanceError                     Traceback (most recent call last)
<ipython-input-1-f2b356251c56> in <module>()
      1 a=4
----> 2 import ipdb; ipdb.set_trace()
      3 b=5
      4 print a
      5 print b

/home/nnn/anaconda/lib/python2.7/site-packages/ipdb/__init__.py in <module>()
     14 # You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
     15 
---> 16 from ipdb.__main__ import set_trace, post_mortem, pm, run, runcall, runeval, launch_ipdb_on_exception
     17 
     18 pm                       # please pyflakes

/home/nnn/anaconda/lib/python2.7/site-packages/ipdb/__main__.py in <module>()
     71         # the instance method will create a new one without loading the config.
     72         # i.e: if we are in an embed instance we do not want to load the config.
---> 73         ipapp = TerminalIPythonApp.instance()
     74         shell = get_ipython()
     75         def_colors = shell.colors

/home/nnn/anaconda/lib/python2.7/site-packages/traitlets/config/configurable.pyc in instance(cls, *args, **kwargs)
    413             raise MultipleInstanceError(
    414                 'Multiple incompatible subclass instances of '
--> 415                 '%s are being created.' % cls.__name__
    416             )
    417 

MultipleInstanceError: Multiple incompatible subclass instances of TerminalIPythonApp are being created.

Le même message d'erreur apparaît si j'utilise ce code dans les jupyter ordinateur portable dans le navigateur, mais dans jupyter qtconsole.
Ce que fait cette erreur de dire et quoi faire pour l'éviter?
Est-il possible de déboguer le code dans la cellule, étape par étape, en utilisant ensuite, continuez, etc commandes de l'apb débogueur?

InformationsquelleAutor lugger1 | 2016-02-24