logoalt Hacker News

thomasp85yesterday at 3:52 PM1 replyview on HN

I'm not quite sure I understand what you mean by "degrade in context" - care to elaborate?


Replies

nicoritschelyesterday at 4:37 PM

If you're familiar with the percent format for jupyter notebooks, something like that— so things gracefully degrade in a more "basic" execution context.

# %%

foo = 1

# %%

print(foo)

Above is notebook with two "cells" & also a valid Python script. Perhaps it matters less with SQL vs Python, but it's a nice property.

show 1 reply