Setting a URL with Losant Notebook Outputs

After reading both https://docs.losant.com/notebooks/notebook-file/writing-guide/#configure-inputs and https://docs.losant.com/notebooks/execution/overview/ I was not able to find a notebook output that will generate a URL within Losant that can house the CSV file my Jupiter Notebook generated. Below is what I aim at generating.

image

Which notebook output should be chosen for setting such a URL?
image

  1. Please confirm the URL is within the Losant Domain and not external.
  2. Is setting the URL as a Jupyter Notbook Output conducted from within Losant ( Notebook Patch Schema)?

@A_G,

Which notebook output should be chosen for setting such a URL?

You should be selecting the Custom File Output option. You can read more about that option in our documentation.

  1. Please confirm the URL is within the Losant Domain and not external.

I can’t confirm that the URL will be of the Losant Domain or External. I would suggest, using the Custom File Output, running a test where a Notebook Trigger Node connects directly to a Debug Node. This would allow you to see the actual payload, and the actual URL.

  1. Is setting the URL as a Jupyter Notebook Output conducted from within Losant

The URL is generated through our backend services, we do not pick/set the URL on our end.

Thank you,
Heath

Your reply was extremely helpful. Your proposed solution now works!

For other forum users: the URL generated by Losant on the backend is:
https://storage.googleapis.com/losant-exports/

I will test further but can you please confirm the same URL will be generated every time the Notebook is executed?

@A_G,

I’m happy to hear that this solution has been fruitful for you!

can you please confirm the same URL will be generated every time the Notebook is executed?

Could you tell me if are looking for the same URL format or the exact same URL? The URL will never be the exact same URL as the URL you received the time before, each is a temporary link. However, it will still come from the domain of storage.googleapis.com/losant-exports/, when received from the Notebook Trigger.

I also wanted to make sure that you knew that when you are using the Custom File Output option as you are, the files generated are being sent to the Losant Application Files directory you set in the Choose a Location configuration option.

Using the example above, every time the notebook runs, it will place a model.h5 in application files, and rewrite it each time. And, after notebook run will always be at https://files.onlosant.com/{{ the application id}}/{{the name of my notebook}}/model.h5. If you need to have the exact same URL every time, this would be the only way to accomplish that.

Please let me know if you have any more questions.

Thank you,
Heath