JoelOtter / kajero

Interactive JavaScript notebooks with clever graphing
Other
1.87k stars 110 forks source link

How to load local files in data #55

Closed FrRichard closed 8 years ago

FrRichard commented 8 years ago

title: "Kajero"
author: "Joel Auterson"
created: "Sun May 15 2016 17:56:09 GMT+0100 (BST)"
datasources:
    joelotter: "https://api.github.com/users/joelotter/repos"
    popular: "https://api.github.com/search/repositories?q=created:>2016-01-01&sort=stars&order=desc"
original:
    title: "Blank Kajero notebook"
    url: "http://www.joelotter.com/kajero/blank"
show_footer: true

JoelOtter commented 8 years ago

...what?

FrRichard commented 8 years ago

how can I load local datasources ?

FrRichard commented 8 years ago

for example some json loaded in a jsmodule

FrRichard commented 8 years ago

datasources MyData: "{ some jsonobject} "

JoelOtter commented 8 years ago

We're looking into loading JSON which is embedded in the HTML file over in issue #45, and using external libraries in issue #43. Loading from the filesystem itself is not something we're currently interested in due to poor cross-browser compatibility. If a desktop solution is what you're after, there's a fork in development that's doing that.

For now, you could just declare your JS object in a hidden code block or something.