ipysheet icon indicating copy to clipboard operation
ipysheet copied to clipboard

Cell does not seem to have a "__repr__" method

Open oscar6echo opened this issue 7 years ago • 4 comments

as opposed to Sheet.
So in order to see a cell in the notebook you must do either something like sheet[5:6] for print(cell).
It would be convenient to just be able to write cell.

oscar6echo avatar Jan 21 '18 23:01 oscar6echo

We could make a cell have a view, which would be a div with it's value shown.

maartenbreddels avatar Jan 22 '18 14:01 maartenbreddels

I was more thinking of displaying all its characteristics as a dict.
Indeed an isolated cell is not that interested for the user. On the contrary its detailed characteristics are useful in debug times.
But maybe both the rendered cell and its characteristics should be easily accessible.
Not sure. We should discuss it.

oscar6echo avatar Jan 22 '18 15:01 oscar6echo

Yes, actually, this works:

cell.__repr__()

Not sure why it is not being called (will check it).

maartenbreddels avatar Jan 22 '18 15:01 maartenbreddels

Opened https://github.com/jupyter-widgets/ipywidgets/pull/2338

maartenbreddels avatar Mar 06 '19 14:03 maartenbreddels