I have a ipynb file called function_list that has this code
'''
Hello, This is autoprinted on importing this module for additional information enter
help(function_list)
'''
def add(a,b):
''' prints addition'''
print(a +b)
def sub(c,d):
''' prints subtraction'''
print(d - c)
def state(string):
''' prints a string'''
print(string)
!jupyter nbconvert --to script function_list.ipynb
When I import this with
from function_list import *
in another file it works, but if I type help(function_list) it throws the error
error: name 'function_list' is not defined. If I import the functions with just
import function_list
it does not import all the functions.
both dir and help didn't work.
I used this link.