3 ms·
>there are better solutions Are there though? It's a one off specific task. It took 10 minutes to do a bunch of the work whilst making a video/explaining. Writ
by raspyberr 4y ago
>there are better solutions
Are there though? It's a one off specific task. It took 10 minutes to do a bunch of the work whilst making a video/explaining. Writing python for this would feel so uninteractive and clunky. And how would you do the manual part of getting the pdf names? I think you're placing way too much value on repeatability for a specific task. I feel like he'd be done with his task whilst you're still writing your API. Then next week a different professor would ask for a different task and your python script wouldn't work.
- fifilura 4y ago> Writing python for this would feel so uninteractive and clunky. Not if you are in a notebook. Have you tried? Opening a zip file and retrieving a listing of the file names is also not very difficult in python, what is manual in that? Apart from the repeatability, a notebook allows you to start from where you failed. With the vim solution, if you do one mistake, I believe you'd have to start over from scratch. Also if the next professor comes, what I'd do is to make a copy of the notebook and modify it just slightly to make it work for the new use-case. A notebook is not like starting your IDE, setting up a project and writing some .py files. It is more like reaching for your pocket calculator to do some quick maths.
- swah 4y agoMaybe you should make a video too :)
- kamaal 4y ago>>With the vim solution, if you do one mistake, I believe you'd have to start over from scratch. Execution of a vim macro is atomic and can be undone with 'undo' AND you can edit a vim macro. So the Jupyter notebook solution might be a overkill for what should be a native editor solution.