Have you considered using viewof? That way you could add the iframe to the DOM (within the cell wrapper) and still return a promise as value. It would also allow you to wrap iframe modifications in a custom API.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Embeding a notebook as an iframe | 3 | 1185 | November 18, 2019 | |
| Detecting when cells are "ready" when embedding a notebook | 6 | 1038 | November 2, 2020 | |
|
Observable Story
|
5 | 545 | September 25, 2020 | |
| Imported function (Promise) is not resolved until page is refreshed | 24 | 2923 | September 5, 2018 | |
|
Canvas tainted by cross-origin requests
|
1 | 1056 | March 13, 2018 |