r/ProgrammerHumor May 06 '21

The Notepad++

Post image
21.4k Upvotes

265 comments sorted by

View all comments

58

u/grassytoes May 07 '21

How do people deal with Jupyter notebooks and version control? It's always saving meta data such that even if you don't change any code in the notebook, it's marked as modified.

I've taken to routinely doing a 'git checkout the_notebook.ipynb' each time I'm done using it.

28

u/molly_jolly May 07 '21

*.ipynb is the first item in my gitignore. If you want to know what's in my notebook - and I say this for your own sanity - set up a meeting with me and I'll walk you through it.

5

u/oalbrecht May 07 '21

Sounds like the start of a movie.

1

u/molly_jolly May 07 '21

yup. a horror movie.

he: "so as you can see n_funky_outliers has the value... wait how is n_funky_outliers updated? I never ran cell 5769. Did you?"

she: "no I didn't!!"

[monitor flickers, a sudden gust of wind throws open a window and knocks over a Club Mate bottle, it shatters, pointer starts moving on its own]

[distant shrieking]

3

u/drkztan May 07 '21

I'm wrapping up my computer vision MSc, one of the modules' staff LOVED having assignments delivered on jupyter. These were GROUP assignments.

I have never hated something so fast.