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 | 1189 | November 18, 2019 | |
| Detecting when cells are "ready" when embedding a notebook | 6 | 1047 | November 2, 2020 | |
|
Observable Story
|
5 | 547 | September 25, 2020 | |
| Imported function (Promise) is not resolved until page is refreshed | 24 | 2932 | September 5, 2018 | |
|
Canvas tainted by cross-origin requests
|
1 | 1060 | March 13, 2018 |