Giter Club home page Giter Club logo

Comments (3)

martinRenou avatar martinRenou commented on August 17, 2024

The thing is that the error happens in a callback that is called when a cell value has changed, the sheet has nothing to do with it.
Also, depending on whether you are using JupyterLab or the Jupyter Notebook I think the behavior can be different. This is not really related to ipysheet, but more to the Python kernel and the client (Jupyter Notebook, JupyterLab or even the console), it's the Python kernel that decides under which cell to send the standard output stream and error stream, and the client will decide where to put it.

I know this can be inconvenient when working... The only thing I can say is that your workaround could be actually the best way to fix it, it redirects everything to the widget.

If you don't mind I'll close this issue as it is not really related to ipysheet.

from ipysheet.

krey avatar krey commented on August 17, 2024

Thanks @martinRenou.
You're right; in my JupyterLab, neither error is shown (original report was using Jupyter Notebook).
Quite a mess...

from ipysheet.

martinRenou avatar martinRenou commented on August 17, 2024

Quite a mess...

I do agree with you 😄. But if you think about it, the answer to the question Where should I put the error stream? might not be obvious. Say the sheet produces an error but you displayed two views of this sheet, under which view should we put the error stream? Maybe both, but if the error stack is really long you can end up with a big mess in the notebook. I might be wrong but I think the default behavior is to put it under the last view.
The thing is that Jupyter developers chose to put error streams and standard outputs under code cells. Usually, an IDE would put it in a console, in an other pane, next to the text editor. In that case there is only one place for output streams.

from ipysheet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.