Skip to content
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

map bang syntax help needed #409

Open
arvindpandit27 opened this issue Oct 29, 2021 · 2 comments
Open

map bang syntax help needed #409

arvindpandit27 opened this issue Oct 29, 2021 · 2 comments

Comments

@arvindpandit27
Copy link

I am trying to make a GUI using Interact.jl and following the tutorial mentioned in their page but somehow seem to get stuck at using map! on a CSV.read operation for an observable type dataframe and a filepicker. I have the following code:

using CSV, DataFrames, Interact, Plots, _Blink_
loadbutton = filepicker()
data = Observable{Any}(DataFrame)
map!(CSV.read,data, loadbutton)

I get the following error:
ArgumentError: provide a valid sink argument, like using DataFrames; CSV.read(source, DataFrame)

Any help will be greatly appreciated! _/_

@piever
Copy link
Collaborator

piever commented Oct 30, 2021

This isn't really an Interact issue, but rather a consequence that CSV.read has changed syntax, so now it should be

map!(source -> CSV.read(source, DataFrame), data, loadbutton)

@arvindpandit27
Copy link
Author

Ahh! Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants