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

How to run the code? #1

Open
Raven888888 opened this issue Mar 29, 2024 · 5 comments
Open

How to run the code? #1

Raven888888 opened this issue Mar 29, 2024 · 5 comments

Comments

@Raven888888
Copy link

I am new to elm, I would like to know how to compile your elm code into js and html?
I am particularly interested in d12Movement one.

Would appreciate if you could give me a simple quickstart!

@jwoLondon
Copy link
Owner

To view these pages with embedded Elm, you can use litvis (setup instructions on that page) which allows you to write Elm code and run it interactively as 'cells' in a markdown document. This uses a literate visualization 'notebook' approach equivalent to environments like Observable or Jupyter.

@Raven888888
Copy link
Author

Sorry you may have misunderstood me @jwoLondon

I would like to compile the code to js and html, so that I can use as a website in my school project, if that makes sense. The project does not allow the 'notebook' approach. Thanks.

@jwoLondon
Copy link
Owner

From within the notebook in VSCode you can right-click on the preview and save as HTML with embedded JS (or PDF).

@Raven888888
Copy link
Author

I see! I tried to do a hello-world example, but my vscode is not rendering...
image

@Raven888888
Copy link
Author

Do you have any idea? @jwoLondon

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

2 participants