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

dataviewer fails on Julia 1.5 with a "Function dropdown was about to overflow: check the signature" error #370

Closed
ilyagr opened this issue Aug 12, 2020 · 1 comment

Comments

@ilyagr
Copy link

ilyagr commented Aug 12, 2020

I couldn't get it to work at all on my machine. It may or may not be related to JuliaGizmos/InteractBase.jl#75.

julia> using StatsPlots, DataFrames; dataviewer(DataFrame(c = [true, true, false], x=[1, 3, 1]))
names = map(collect  keys, coltable) = Observable{Any} with 0 listeners. Value:
[:c, :x]
ERROR: Function dropdown was about to overflow: check the signature
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] dropdown(::Widgets.DummyBackend, ::Vararg{Any,N} where N; kwargs::Base.Iterators.Pairs{Symbol,Any,Tuple{Symbol,Symbol},NamedTuple{(:placeholder, :multiple),Tuple{String,Bool}}}) at /home/ilyagr/.julia/packages/Widgets/451tD/src/defaults.jl:8
 [3] dropdown(::Observables.Observable{Any}; kwargs::Base.Iterators.Pairs{Symbol,Any,Tuple{Symbol,Symbol},NamedTuple{(:placeholder, :multiple),Tuple{String,Bool}}}) at /home/ilyagr/.julia/packages/Widgets/451tD/src/defaults.jl:10
 [4] dataviewer(::DataFrame; throttle::Float64, nbins::Int64, nbins_range::UnitRange{Int64}) at /home/ilyagr/.julia/packages/StatsPlots/HJWh4/src/interact.jl:14
 [5] dataviewer(::DataFrame) at /home/ilyagr/.julia/packages/StatsPlots/HJWh4/src/interact.jl:7
 [6] top-level scope at REPL[23]:1

julia> versioninfo()
Julia Version 1.5.0
Commit 96786e22cc (2020-08-01 23:44 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-9.0.1 (ORCJIT, skylake)

(jl_umvksA) pkg> st
Status `/tmp/jl_umvksA/Project.toml`
  [a93c6f00] DataFrames v0.21.6
  [c601a237] Interact v0.10.3
  [f3b207a7] StatsPlots v0.14.11

I also recorded my Manifest.toml in a gist.

The example from the readme (copied below) fails with the same error.

import RDatasets
iris = RDatasets.dataset("datasets", "iris")
using StatsPlots, Interact
using Blink
w = Window()
body!(w, dataviewer(iris))
@ilyagr
Copy link
Author

ilyagr commented Aug 12, 2020

I think I figured it out. Running import Interact explicitly before dataviewer makes it work. I must have not actually done it in my last example, I guess.

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