2

I've tried to install both python2 and python3 kernels as suggested here and here (through pip and pip3 ipykernel install), but in all the variants I end up with working python2 kernel and almost-working python3 one.

python3 kernel is displayed as the option in "New" dropdown menu, but all notebooks created under it don't produce any output.

That is, I can create new cell, paste print(5) in there and run it (the runcount to the left will be incremented), but no output cell is produced.

Same (no) reaction is observed on syntactically-wrong code.

Any ideas on where to go?

Community
  • 1
  • 1
whoever
  • 575
  • 4
  • 18
  • Are there any errors in the terminal where you launched the notebook or in the browser's Javascript console when this happens? – Thomas K Mar 07 '16 at 15:24
  • Thanks for care, @ThomasK. Nope, the only warning that arises is 404 GET /static/components/backbone/backbone-min.map, but according to https://github.com/ipython/ipython/issues/6725 it's pretty much useless anyway (and happens on page load, not on cell execution). js browser console is also clean =\ – whoever Mar 07 '16 at 17:28
  • @ThomasK update: when I try running e.g. `print 2` it pipes the SyntaxError into terminal where notebook is running. Nothing there on `print(2)` though – whoever Mar 07 '16 at 17:30
  • Can you find what type of object is `sys.stdout`? To get output in a pinch, try `print(x, file=sys.__stderr__)` - this should send output to the terminal where you ran the notebook. – Thomas K Mar 07 '16 at 18:05
  • `print(type(sys.stdout), file=sys.__stderr__)` prints `` in terminal – whoever Mar 07 '16 at 18:13
  • That's what it's supposed to be. I'm not sure what else could be wrong. – Thomas K Mar 07 '16 at 20:23

1 Answers1

1

Ok, nevermind, looks like some deeeeep interdependence-out-of-date bug on this specific machine. After one more from-scratch setup it works. Thank you, Thomas, for assistance!

whoever
  • 575
  • 4
  • 18