• driving_crooner
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    1 month ago

    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?

    • thejevans@lemmy.ml
      link
      fedilink
      arrow-up
      9
      ·
      1 month ago

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

      • driving_crooner
        link
        fedilink
        arrow-up
        2
        ·
        1 month ago

        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.

        • AA5B@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          1 month ago

          Don’t wait. Come talk to us. Yeah things are hectic with demands flooding in from all directions but we want to make your job easier and better

          • driving_crooner
            link
            fedilink
            arrow-up
            3
            ·
            1 month ago

            The ticket is already open and I guess on the queue, and I already have a couple of more important tickets at front (some databases I want to access directly from python, instead of having to use excel to generate the queries and the export from it).

        • thejevans@lemmy.ml
          link
          fedilink
          arrow-up
          1
          ·
          1 month ago

          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.

          • driving_crooner
            link
            fedilink
            arrow-up
            1
            ·
            1 month 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)

          • jacksilver@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            1 month ago

            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.

            • driving_crooner
              link
              fedilink
              arrow-up
              1
              ·
              1 month 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)