-
Notifications
You must be signed in to change notification settings - Fork 35
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
using pandas-js in front end via cdn? #59
Comments
@aspiringguru You can clone this repo and host the |
Thanks. I not sure how far out of my depth I am as normally I can do things. npm init node Welcome to Node.js v12.14.1.
SyntaxError: Cannot use import statement outside a module I also had a look at this method of converting node packages to javascript files for use in html. got the basic demo there to work. Could not translate this to pandas-js. Feel like I've regressed. obviously I'm doing a very basic environment setup thing wrong. Weird tho as I've used other npm install packages before. |
I will see if I can save you some time and confusion. Coming from a Python background, looking at the JavaScript landscape right now would understandably be very confusing. I myself had a primarily Python background before doing a lot of JS stuff. The problem you are experiencing has to do with the two most common ways JavaScript apps are created. The first way you mentioned with looking for a CDN distribution of the library is what I would call the "traditional" way of creating an app where you're working in an HTML file and adding a The other way, which is becoming more common is to use Node.js and When you see code samples that are using In your situation, looks like you already have node since you were able to I hope this helps and good luck! |
Just found this, not seeing a deployment via cdn or similar. Was hoping to load via a url.
Are there plans to re[ackage from a node package to a standalone favascript file to loading via a url?
(suspect there is a fair bit of work to repackage to enable this.)
[Coming from R & Python land, so this question might appear dumb :) ]
The text was updated successfully, but these errors were encountered: