ianb
November 17, 2022, 8:48pm
5
Your method is generally the one suggested to obtain a URL for a media object that is loaded or generated on the client.
If however you know how your JCrop javascript works, you may be able to interface with it directly using the anvil.js
module.
Info Here:
Using JavaScript This feature is optional - you do not need to know JavaScript to use Anvil!
However, if you do know JavaScript, and want to integrate with a low-level browser API or an existing JavaScript library, this reference will allow you to...
and here:
Yes, it is entirely possible to embed Vega Lite – like any Javascript library – into an Anvil app. You have to write a little bit of Javascript to glue it together, but once that’s done you can use it entirely from Python. Here’s an example app, and a step-by-step guide to how I built it.
Here’s the example app, which embeds the example you just linked to:
https://anvil.works/build#clone:EBK7KDYPKS7V4ADB=YQK2LLDCPHBOZAITZIB3BWS6
And here’s how I did it:
1. Import the Vega embedding libraries …
1 Like