Skip to content

Error on visualisation of NDArray in dotnet interactive jupyter notebook #103

@ordinaryorange

Description

@ordinaryorange

Repro code

#r "nuget:Numpy.Bare"
using Numpy;
var nd = np.asarray(new [] {1});
nd

Error: Python.Runtime.PythonException: TypeError : 'numpy.core.multiarray.flagsobj' object is not iterable
at Python.Runtime.PyIter..ctor(PyObject iterable)
at Python.Runtime.PyObject.GetEnumerator()
at System.Linq.Enumerable.CastIterator[TResult](IEnumerable source)+MoveNext()
at Microsoft.DotNet.Interactive.Formatting.EnumerableExtensions.TakeAndCountRemaining[T](IEnumerable`1 source, Int32 count, Boolean forceCountRemainder)

Is this something that needs to be adjusted in Numpy.NET or is it a dotnet Interactive thing ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions