Hacker News new | ask | show | jobs
by pxndx 2634 days ago
I'd propose reading data from stdin. Seeing this is about python, one could even consider using fileinput [0] to manage multiple files.

[0]: https://docs.python.org/3/library/fileinput.html

1 comments

It is a jupyter notebook, not a python script. Your proposal won't work.

You generally don't open a notebook from the commandline, you open it from the notebook file picker inside your browser.

You generally don't "run" a notebook, like you would a script. It is an interactive programming environment.

https://github.com/jupyter/nbconvert/issues/681