Skip to content
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

Web Viewer #37

Open
mcnuttandrew opened this issue Nov 1, 2019 · 2 comments
Open

Web Viewer #37

mcnuttandrew opened this issue Nov 1, 2019 · 2 comments

Comments

@mcnuttandrew
Copy link

Is there a way to view litvis files without downloading them? Something akin nbviewer but for litvis files?

If not could there be? Either something like nbviewer's web view for jupyter notebooks or a chrome extension which would allow you to view litvis examples as rendered litvis files in context.

@kachkaev
Copy link
Member

kachkaev commented Nov 2, 2019

👋 @mcnuttandrew you can export a litvis document as an HTML file by right-clicking on the preview.

As of making a proper online preview with editing and live updates, this is pretty challenging. The most complex part is to run Elm code either on a server or in a browser. The codebase was designed with allowing for web view in mind, so if you or others are interested in implementing it, I'll be happy to help. Sadly, I don't have enough time to work on it myself.

@jwoLondon
Copy link
Member

This may be overkill for your use case, butGitHub codespaces may offer an approach to do this (and much more besides). It allows a docker containers to be distributed via the browser that can contain the relevant elm, prettier, Vega-lite and VS Code plugins – everything needed by litvis for full editing as well as viewing.

As codespaces are currently in beta, we cannot roll this out for litvis yet, but it looks promising and we will continue to experiment with them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants