I wonder if it is possible to split jupyter classes into different cells? Let's say:
class foo(object):
def __init__(self, var):
self.var = var
def print_var(self):
print(self.var)
For more complex classes, it’s really annoying to write them in one cell. I would like to put each method in a different cell.
Someone did this last year, but I'm wondering if there is anything in the assembly, so I don't need external scripts / imports.
And if not, I would like to know if there is a reason not to give the opportunity to split your code and document / debug it easier.
Thanks in advance
source
share