Hacker News new | ask | show | jobs
by thomasp85 59 days ago
I'm not quite sure I understand what you mean by "degrade in context" - care to elaborate?
1 comments

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.

Ah - I don't think it really matters here, but if you find yourself in need then you can open a GitHub issue and we can discuss