News for hackers. Stuff that matters.
Re:Show HN: A tool to convert Jupyter notebooks to beautiful... by numlocked on Wednesday July 24, 2019 @07:27PM (#20521155)
Oh my god. I have used Jupyter notebooks for 7 years and never knew this. I just had to fire one up to verify -- and yep; exactly as described. How amazing! Thank you!
Re:Show HN: A tool to convert Jupyter notebooks to beautiful... by spondyl on Thursday July 25, 2019 @01:28AM (#20522806)
I believe the _5 syntax is specific to Jupyter, but in Python, the output of the last statement you execute is bound to _

For example, if you simply enter 4 into a Python REPL, printing _ will also print 4

It's really handy if you call a long statement in the REPL and forget to save the output to a variable

I wrote about it once if you'd like to see some better examples: https://utf9k.net/blog/lost-python-results/