https://www.youtube.com/watch?v=KejRjlSvOL8&t=13s

Add

Send in production this notebook and get URL to run it when opened.

naas.webhook.add()

screenshot-api-add

Other files

You can also give a path to the function and that will deploy this one instead of the current one.

naas.webhook.add(path="path/to/my/super/notebook.ipynb")

Parameters

notif_down : Receive an email when the notebook run fails.

notif_up : Receive an email when the notebook runs well.

next_url : Redirect users to another URL after the notebook is run.

inline : Get a response in your web browser instead of downloading the result.

params = {"notif_down": "bob@naas.ai", "notif_up": "georges@naas.ai"}

naas.webhook.add(params=params)

Dynamic Parameters

When you notebook url is called in **getting ** or post, it accepts parameters with mime-type :

application/x-www-form-urlencoded

application/json

They will be injected into a new cell in the first position in your notebook.

{% hint style="info" %} If You want them to be added at a specific place add tag parameters in a cell and your **dynamic parameters **will be added in a new cell next to it. {% endhint %}