# NotebookOpen\[ \] failed with notebook in cloud?

**URL:** <https://community.wolfram.com/t/notebookopen-failed-with-notebook-in-cloud/17946>\
**Category:** Questions\
**Tags:** computational-notebooks, wolfram-cloud\
**Created:** [April 9, 2021, 4:49am UTC](https://community.wolfram.com/t/notebookopen-failed-with-notebook-in-cloud/17946 "2021-04-09T04:49:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![195131009](https://avatars.discourse-cdn.com/v4/letter/1/3ab097/32.png) [@195131009](https://community.wolfram.com/u/195131009)\
**Post date:** [April 9, 2021, 4:49am UTC](https://community.wolfram.com/t/notebookopen-failed-with-notebook-in-cloud/17946/1 "2021-04-09T04:49:08Z")

</div>

[According to here](https://reference.wolfram.com/language/ref/NotebookOpen.html)

I expected this to work:

```
File1 = NotebookOpen["https:/mydomain.mysite.com/Unite3-4.nb"]; 
SelectionMove[File1, All, Notebook] 
SelectionEvaluate[File1]

```

I also tried

```
NotebookOpen[URL["https:/mydomain.mysite.com/Unite3-4.nb"]]

```

Returns $Failed

---

<div class="post-metadata">

**Author:** ![rohitnamjoshi](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@rohitnamjoshi](https://community.wolfram.com/u/rohitnamjoshi)\
**Post date:** [April 9, 2021, 1:18pm UTC](https://community.wolfram.com/t/notebookopen-failed-with-notebook-in-cloud/17946/2 "2021-04-09T13:18:21Z")

</div>

Does the example from the documentation work for you after changing `http` to `https`?

```
NotebookOpen["https://demonstrations.wolfram.com/data/001281/0004/PoissonDistribution/PoissonDistribution.nb"]

```

Does `https:/mydomain.mysite.com/Unite3-4.nb` work in a browser?

---

<div class="post-metadata">

**Author:** ![195131009](https://avatars.discourse-cdn.com/v4/letter/1/3ab097/32.png) [@195131009](https://community.wolfram.com/u/195131009)\
**Post date:** [April 9, 2021, 7:25pm UTC](https://community.wolfram.com/t/notebookopen-failed-with-notebook-in-cloud/17946/3 "2021-04-09T19:25:25Z")

</div>

Answer1:  
Example fails too.  
I just pasted the code section you provide and delete the s of https and shift + enter in the cell.  
Am i doing something wrong?

Answer2:

```
https:/mydomain.mysite.com/Unite3-4.nb 

```

in the browser address bar shows a very long starting with

```
Notebook[{Cell[

```

text in the browser window.

---

<div class="post-metadata">

**Author:** ![jpoeschko](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/jpoeschko/32/21975_2.png) [@jpoeschko](https://community.wolfram.com/u/jpoeschko)\
**Post date:** [April 10, 2021, 8:03am UTC](https://community.wolfram.com/t/notebookopen-failed-with-notebook-in-cloud/17946/4 "2021-04-10T08:03:39Z")

</div>

In the cloud, `NotebookOpen` currently only works with files referring to existing cloud objects. So you could create a corresponding cloud object first:

```
CopyFile[URL["https://demonstrations.wolfram.com/data/001281/0004/PoissonDistribution/PoissonDistribution.nb"],
    CloudObject["mypoisson.nb"]]

```

Then you can apply `NotebookOpen`:

```
NotebookOpen["mypoisson.nb", "OpenInNewWindow"->True]

```

Controlling that separate notebook will only work to a certain degree in the cloud. `SelectionMove` is supported, but `SelectionEvaluate` is not (yet).

BTW, you can also use `SystemOpen` to open a particular URL or cloud object:

```
SystemOpen["https://demonstrations.wolfram.com/data/001281/0004/PoissonDistribution/PoissonDistribution.nb"]

```

That will just let the browser handle the file, which typically means it will trigger a download when given a raw notebook file.

There is work underway to support viewing notebooks at arbitrary URLs, without creating corresponding cloud objects first.
