You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am aware that importing Observable notebooks is not supported, ref1, ref2 and that the recommended procedure for getting notebooks into Framework is to convert and adapt them. However -- once I do that, is there a way that I can import functions from a Framework app into another app (or from one file in an app to another in the same app)?
I ask this because I have converted a number of notebooks into working apps, and would like to re-use the code as imports. To date, I have been doing this in two steps: 1) converting the notebook, and then 2) refactoring it into a vanilla JS file for exporting.
Recently, when working on a port of Tom Larkworthy's AWS Helpers notebook, I discovered behaviors that work just fine in the context of the Framework app [code][rendered site], but which do not translate well when trying to adapt it to a vanilla JS export[code]. The errors I am facing could be avoided if I were able to export a framework app with the Observable runtime in a similar manner as with notebooks.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there 👋
I am aware that importing Observable notebooks is not supported, ref1, ref2 and that the recommended procedure for getting notebooks into Framework is to convert and adapt them. However -- once I do that, is there a way that I can import functions from a Framework app into another app (or from one file in an app to another in the same app)?
I ask this because I have converted a number of notebooks into working apps, and would like to re-use the code as imports. To date, I have been doing this in two steps: 1) converting the notebook, and then 2) refactoring it into a vanilla JS file for exporting.
Recently, when working on a port of Tom Larkworthy's AWS Helpers notebook, I discovered behaviors that work just fine in the context of the Framework app [code] [rendered site], but which do not translate well when trying to adapt it to a vanilla JS export[code]. The errors I am facing could be avoided if I were able to export a framework app with the Observable runtime in a similar manner as with notebooks.
Thank you for your help and insights! 🙏
Beta Was this translation helpful? Give feedback.
All reactions