# Setting a URL with Losant Notebook Outputs

**URL:** <https://forums.losant.com/t/setting-a-url-with-losant-notebook-outputs/3286>\
**Category:** Help\
**Tags:** notebooks\
**Created:** [September 25, 2020, 12:47am UTC](https://forums.losant.com/t/setting-a-url-with-losant-notebook-outputs/3286 "2020-09-25T00:47:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![A\_G](https://avatars.discourse-cdn.com/v4/letter/a/d78d45/32.png) [@A\_G](https://forums.losant.com/u/A_G)\
**Post date:** [September 25, 2020, 12:47am UTC](https://forums.losant.com/t/setting-a-url-with-losant-notebook-outputs/3286/1 "2020-09-25T00:47:24Z")

</div>

After reading both [https://docs.losant.com/notebooks/notebook-file/writing-guide/#configure-inputs](https://docs.losant.com/notebooks/notebook-file/writing-guide/#configure-inputs) and [https://docs.losant.com/notebooks/execution/overview/](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](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/7/7ede60d74825765b6e77b1acd923541e8591d8bb.png)

Which notebook output should be chosen for setting such a URL?  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/3/30d00ab7e32909dcf2d3070dabb987beb41084b7.png)

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](https://docs.losant.com/rest-api/schemas/#notebook-execution-logs))?

---

<div class="post-metadata">

**Author:** ![Heath](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/heath/32/3036_2.png) [@Heath](https://forums.losant.com/u/Heath)\
**Post date:** [September 25, 2020, 3:05pm UTC](https://forums.losant.com/t/setting-a-url-with-losant-notebook-outputs/3286/3 "2020-09-25T15:05:33Z")

</div>

@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](https://docs.losant.com/notebooks/outputs/#custom-file).

> 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](https://docs.losant.com/workflows/triggers/notebook/) 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

---

<div class="post-metadata">

**Author:** ![A\_G](https://avatars.discourse-cdn.com/v4/letter/a/d78d45/32.png) [@A\_G](https://forums.losant.com/u/A_G)\
**Post date:** [September 28, 2020, 10:47pm UTC](https://forums.losant.com/t/setting-a-url-with-losant-notebook-outputs/3286/5 "2020-09-28T22:47:49Z")

</div>

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/](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?

---

<div class="post-metadata">

**Author:** ![Heath](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/heath/32/3036_2.png) [@Heath](https://forums.losant.com/u/Heath)\
**Post date:** [September 29, 2020, 3:13pm UTC](https://forums.losant.com/t/setting-a-url-with-losant-notebook-outputs/3286/7 "2020-09-29T15:13:29Z")

</div>

@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](https://docs.losant.com/applications/files/) directory you set in the `Choose a Location` configuration option.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/f/fed46bc2a6e3fc9a900b7fac66057c55de5f2927.png)

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
