Hacker News new | past | comments | ask | show | jobs | submit login

> I see no reason why you couldn't combine the two

You bet! Although Anvil mostly shields you from the mudbath of the modern web front end, we do have full HTML and JS interop. So you can call into JS from Anvil's Python code, and into Python from JS.

Even better, once you've built your (eg) three.js interface, you can package it up as a custom component. Then you (or anyone else) can drag-and-drop it onto their page and use it with a pure Python API.

-

I haven't finished editing the tutorial video for this, so I'm afraid I'm just going to point you at the reference docs.

JS interop: https://anvil.works/doc#js_interop

Custom components: https://anvil.works/doc#custom_components

There are also quite a few examples on our user forum, if you sniff around. Check out the "Show and Tell" section in particular.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: