Re:JupyterLab 4.0
by spywaregorilla on Thursday June 15, 2023 @09:17AM
(#36340019)
I do all of my code in notebooks. If your docstring is slow to read, it is a bad docstring. To be clear, a docstring is the thing you get when you have a function, you don't know what it does, and you press shift tab to bring up the brief description of what it does in a pop up (in jupyter lab). It should be the quickest, least error prone form of documentation because it is available on demand and is supposed to be short.
Using notebooks as functions is a bad idea. I think papermill is trash.
Notebooks are good for illustrating what you did and what you got. They are not good for illustrating how you did it.
Re:JupyterLab 4.0
by fluidcruft on Friday June 16, 2023 @12:31PM
(#36359438)
It truly is fascinating that you continue to insist that I don't know what a docstring is. Notebooks are good for certain things and not good for others.
This conversation is going nowhere.
> If your logic is broken up across cells then you cannot use it anywhere but in that notebook...
You don't seem to understand how notebooks can be used and processed themselves. They are just data and there are libraries for loading and transforming them. You might check out pydev and papermill to get an idea about this (and maybe also literate programming in general).