New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Offline support #9
Comments
@juba Do you mean that if a user has a local stored copy of an observablehq notebook that they could use the local copy instead of an online download? Observablehq allows for download that produces a zip file that we could potentially plug in instead either with bare text/ Or, we could set up an It seems like we would need a mechanism here to choose local instead of online. I'm not sure yet if this might be helpful, but htmlwidget simplification ramnathv/htmlwidgets#305 might aid in this feature. |
After a little experimentation, offline will be possible unless we can get http server in R to serve
|
This is a less than ideal way to make this work, but if we only expect one notebook then perhaps we could replace
|
Thanks for taking the time to experiment on this. You're right, the MIME type issue is a real problem here as modules are not expected to be loaded from local files. In my browser even downloading a notebook via Observable "Download code" features doesn't work outside of a local HTTP server. Your workaround is quite clever if not ideal ! The only use case of an offline support I can think of is an rmarkdown document which would be completely |
Other workarounds could be :
In other words, none of these workarounds are ideal either... |
See if there could be a way to provide offline support (ie functional widget in rmarkdown or shiny without an active Internet connection).
The text was updated successfully, but these errors were encountered: