this post was submitted on 08 Nov 2024
239 points (97.2% liked)

Programmer Humor

32479 readers
315 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 1 week ago* (last edited 1 week ago) (8 children)

Im an actuarie but everything I do is kn python jupyter notebooks,and I would like to do keep using them and use some git/version control with them. Is any good way to do that? Or are jupyter notebooks not git friendly?

[–] [email protected] 8 points 1 week ago (7 children)

Jupyter notebooks can totally handled by git! If you use GitHub, it will even render them on the WebUI for you.

[–] [email protected] 2 points 1 week ago (6 children)

I'm my past job we had Azure-devOps, i tried to upload an jupyter notebook but it didn't recognized it was a jupyter notebook and show the file as a JSON and it was not nice to work with, I had to export the notebooks as python scripts to get it working fine. In my new job, I'll still waiting for the IT team to approve and set up something for me.

[–] [email protected] 1 points 1 week ago (2 children)

I don't know if DevOps can render them. It certainly can't on my system. I would recommend not using the remote repository WebUI for that feature.

[–] [email protected] 1 points 1 week ago

In this new job I'm also looking up for the devops access (they even have github completely blocked on the corporate network) and I'm hoping I can connect it somehow with VS Code (in the pass one I couldn't)

[–] [email protected] 1 points 1 week ago (1 children)

With jupyter notebooks in a devops perspective you could just build a process to export the notebooks to standard py files and then run them.

There are actually a lot of git hooks that will actually expoet/convert .ipynb to .py files automatically since notebooks don't work great with git.

[–] [email protected] 1 points 6 days ago

VS code can export and import from a to jupyter notebooks, but there's some kind of bug and the imported notebooks always keep a ## % on each cell (not a high deal, but is annoying because subsequent exports/imports think they are cells to be created)

load more comments (3 replies)
load more comments (3 replies)
load more comments (3 replies)