psychopy.org | Reference | Downloads | Github

Importing JS packages for online study

Hi,

I am looking into making my online experiment more lightweight by not uploading countless pre-generated lists but generating them online. To this end, I would like to import a JS package from an online resource. However, when I write
import {DataFrame} from "https://gmousse.github.io/dataframe-js/dist/dataframe.min.js"
in the JS section of a Begin of Experiment code field compiling to JS yields an error. Sadly, I did not find any info on doing what I want online. Is there any way to do this at all?

Thanks for your support!