I have 2 .ipynb notebooks, A & B. I want to use some funcionts/class of A in B. Without running A.
Notebook "A":
class class_i_want_to_import_to_use:
def __init__(self, x):
print (x)
print ("Main that i don't want to run when importing ")
Notebook B
import import_ipynb
import A
b=A.class_i_want_to_import_to_use("run it in B notebook")
Out:
importing Jupyter notebook from A.ipynb
Main that i don't want to run when importing #DONT WANT TO SEE THIS
run it in B notebook
is this possible or do i need to separate all my functions intoa notebook that doesn't run anything ?