Skip to content

Instantly share code, notes, and snippets.

@ulope
ulope / 01_implicit_chaining.py
Last active April 13, 2021 14:15
Python exception chaining
def implicit_chaining():
"""
This is the Python 2 style. Just raising another exception from within an except block.
In Python 3 this causes the exceptions to be chained with the message:
During handling of the above exception, another exception occurred:
Which is usually not correct when just re-raising with a more appropriate type.
"""
try:
@xiaolai
xiaolai / jupyter-as-a-desktop-app.md
Last active May 3, 2025 12:56
Run Jupterlab as an desktop app

How to run Jupyterlab as a desktop app on Mac OSX

In Sep, 2021, Jupyterlab Desktop App (electron) was released by Mehmet Bektas (github repo).

brew install --cask jupyterlab

jupyterlab-app-first-opened