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?

6
  • Are there any errors in the terminal where you launched the notebook or in the browser's Javascript console when this happens? Commented Mar 7, 2016 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 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 =\ Commented Mar 7, 2016 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 Commented Mar 7, 2016 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. Commented Mar 7, 2016 at 18:05
  • print(type(sys.stdout), file=sys.__stderr__) prints <class 'ipykernel.iostream.OutStream'> in terminal Commented Mar 7, 2016 at 18:13

1 Answer 1

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!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.