Google Colab does not support nbconvert so we can not convert the notebook to python files.
It would be very nice to allow ZnTrack usage in Colab so here are some possiblities:
Write Python files in the beginning of the notebook
define e.g. __src__ which contains the Node src including the required inputs
Use something like this
@NBNode # where to put the decorator / decorators ?
def func():
import zntrack
@Node()
class HelloWorld:
def print(self):
print("Hello World")
return HelloWorld
print(inspect.getsource(func))
Google Colab does not support
nbconvert
so we can not convert the notebook to python files. It would be very nice to allow ZnTrack usage in Colab so here are some possiblities:__src__
which contains the Node src including the required inputsUse something like this
and potentially fix #103