我正在 GCP 中尝试 Papermill。我需要从 Jupyter Notebook-2(test_integration) 调用 Jupyter Notebook-1 (call_test) 中的特定函数
我无法这样做,任何人都可以帮助我如何去做。下面找到代码
Jupyter Notebook-2 (test_integration):
client = bigquery.Client()
sql = """SELECT * FROM `abc`"""
Master = client.query(sql).to_dataframe()
Master.to_csv("testing_1.csv")
%run ./call_test.ipynb
a= add_test(Master)
a.to_csv('testing_2.csv')
Jupyter Notebook-1 (call_test):
def add_test(Master):
return(Master)
错误:
"add_test" not defined