Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pořešit chyby v Notebooku #10

Open
encukou opened this issue Oct 26, 2017 · 1 comment
Open

Pořešit chyby v Notebooku #10

encukou opened this issue Oct 26, 2017 · 1 comment

Comments

@encukou
Copy link
Member

encukou commented Oct 26, 2017

Když je v buňce chyba, dělá to neplechu. Občas je dobré chybu ukázat. V NumPy to teď řešíme takhle:

try:
    if numpy.eye(3):
        pass
except ValueError as e:
    print("Chyba!", type(e), e)

Mělo by to jít líp.

@encukou encukou transferred this issue from pyvec/naucse.python.cz Aug 23, 2019
@encukou
Copy link
Member Author

encukou commented Feb 12, 2020

poznamenám si tu co říkal Ondrej Kokes na Slacku:

tak ty výjimky jsem dohledal, že jdou celkem elegantně vyřešit v nativním jupyteru tak, že otaguju buňku jako “raises-exception” a v run-all to pak pojede dál

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant