Azure Databricks Notebook 未传递参数

Azure Databricks Notebook didn't pass parameter

我这里有问题,我需要将我的笔记本参数传递给其他笔记本。但是我这里出错了。我遵循了 Azure Databricks 中的示例,但它不起作用。

这是我的笔记本资源脚本

dbutils.notebook.run('./Test', timeout_seconds=(3600*4), {"current_date": "2022-01-25"})

这是我的错误

SyntaxError: positional argument follows keyword argument

Sources

如果您按名称指定了一个参数,那么您还需要按名称指定其余参数(参见 docs):

dbutils.notebook.run('./Test', timeout_seconds=(3600*4), 
   arguments={"current_date": "2022-01-25"})

或者您可以省略名字:

dbutils.notebook.run('./Test', 3600*4, {"current_date": "2022-01-25"})