Pluto.jl: TimeSeries.jl demos don't work in Pluto (they work in Jupyter)

Created on 22 Nov 2020  路  2Comments  路  Source: fonsp/Pluto.jl

Using julia version 1.5.3

When running the demo code on the TimeSeries.jl documentation:

using Dates, TimeSeries
dates = Date(2018, 1, 1):Day(1):Date(2018, 12, 31)
TimeArray(dates, rand(length(dates)))

I receive an error message:
```Failed to show value:

MethodError: no method matching getindex(::Tables.RowIterator{NamedTuple{(:timestamp, :A),Tuple{Array{Dates.Date,1},Array{Float64,1}}}}, ::Int64)

table_data(::TimeSeries.TimeArray{Float64,1,Dates.Date,Array{Float64,1}}, ::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}})@PlutoRunner.jl:611
show_richest(::IOContext{Base.GenericIOBuffer{Array{UInt8,1}}}, ::Any)@PlutoRunner.jl:378

sprint_withreturned#23(::IOContext{Base.DevNull}, ::Int64, ::typeof(Main.PlutoRunner.sprint_withreturned), ::Function, ::TimeSeries.TimeArray{Float64,1,Dates.Date,Array{Float64,1}})@PlutoRunner.jl:333

format_output_default#13(::Pair{Symbol,Dict{Tuple{UInt64,Int64},Int64}}, ::typeof(Main.PlutoRunner.format_output_default), ::Any)@PlutoRunner.jl:268

format_output#[email protected]:285[inlined]

formatted_result_of(::Base.UUID, ::Bool, ::Nothing)@PlutoRunner.jl:76
top-level scope@none:1
```

I verified that the same code runs successfully in the julia command line as well as in the Jupyter Notebook.

display & PlutoRunner

Most helpful comment

All 2 comments

Probably the same issue as #708

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FelixBenning picture FelixBenning  路  3Comments

garrison picture garrison  路  4Comments

MikaelSlevinsky picture MikaelSlevinsky  路  5Comments

roflmaostc picture roflmaostc  路  4Comments

briochemc picture briochemc  路  6Comments