question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Give ArrayInterface lower priority

See original GitHub issue

The ArrayInterface represents the original format for all our charts types, and it’s limitations are what made us eventually go down the route of interfaces (via the terrible diversion of NdElement). While it is a fairly straightforward format simply representing the Rows and Columns of your data as an array, it only works if your data is of uniform type. This means that you have to reason about the types of your data to know how HoloViews will store it. Therefore I’d argue it should not be the default datatype, letting us promote the PandasInterface and DictionaryInterface ahead of it. This means that for columnar data you will always be guaranteed to get one of those types on your .data attribute depending on whether you have pandas installed or not.

The only complication in making this change is that our testing machinery seemingly like neither pandas nor the dictionary data output, so wherever we print .data in the tutorials it fails to do the comparison correctly.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
philippjfrcommented, Feb 9, 2018

I’m going to push for this to be included in v1.10. It’s long overdue and have long recommended that users do not access .data directly.

0reactions
jlstevenscommented, Feb 11, 2018

I agree this is overdue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CUDA Array Interface (Version 3) - Numba documentation
The CUDA Array Interface (or CAI) is created for interoperability between ... If strides is not given, or it is None , the...
Read more >
Interfaces - Julia Documentation
There are a few more methods we can extend to give Julia more information about ... Consequently, specializing on DestType has lower precedence...
Read more >
Conversion to Julia · PythonCall & JuliaCall - JuliaHub
Objects satisfying the buffer or array interface, Array , AbstractArray. Low priority (fallback to Py ). Anything, Py. Bottom priority (must be explicitly ......
Read more >
Home · ArrayInterface
Designs for new Base array interface primitives, used widely through scientific ... ArrayInterfaceCore is a smaller set of the ArrayInterface setup which ...
Read more >
Implement Set/Get Interface for Properties - MATLAB & Simulink
You want to assign two property values on each object: ... By giving the Discontinuities property a lower priority, the string Disc continues...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found