Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from importnb import Notebook
@dataclass
class Lua(Notebook):
extensions = ".lua", ".lua.ipynb"
def exec_module(self, module):
from lupa import LuaRuntime
module.lua = LuaRuntime()
module.lua.execute(self.get_source(self.path))
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tonyfast
tonyfast / details-summary.ipynb
Created August 8, 2022 20:31
using two html standards to hide notebook content
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tonyfast
tonyfast / 2022-08-05-iris-demo.ipynb
Created August 5, 2022 15:47
a notebook demo'ing pandas/sklearn
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# NBVAL_IGNORE_OUTPUT
# NBVAL_CHECK_OUTPUT
# NBVAL_SKIP
# NBVAL_RAISES_EXCEPTION
@tonyfast
tonyfast / 2022-07-17-shebang-magic.ipynb
Created August 2, 2022 02:58
make shebangs a cell magic
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tonyfast
tonyfast / 2022-07-16-larknb.ipynb
Last active July 23, 2022 03:52
a json grammar to parse notebooks into source code
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@tonyfast
tonyfast / 2022-07-16-list-of-urls-py-md.ipynb
Created July 16, 2022 17:12
an essay on the interfaces between md & py using a list of urls
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.