Skip to content

Newbie question - Request for simple julia data loader #1062

Answered by mbostock
gganapat asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you can have a data loader named test.csv.jl and not have it generate CSV — it’s just a little confusing. If you just want a test, maybe call it test.txt.jl instead?

No, the #!/usr/bin/env julia shebang is not necessary if you use the .jl extension for your data loader. A shebang is only necessary when using an executable (.exe) data loader rather than an interpreted one (and in that case, your data loader must also have the executable bit set).

Data loaders are only run if you reference their output. So in addition to writing the data loader, you’ll need to load the file in a Markdown page (or in a JavaScript module that is imported by a Markdown page). If you visit that page in you…

Replies: 5 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by mbostock
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@gganapat
Comment options

@gganapat
Comment options

@mbostock
Comment options

@gganapat
Comment options

@mbostock
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@mbostock
Comment options

@gganapat
Comment options

@gganapat
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants