when i want to write, i really want to write! i don't want to import modules i know i should have access to. i only care about this in interactive computing circumstances. i need to satisfy my compulsion to write new things, and avoid the old things. a revision stage after this initial burst will formalize the reuse of the module.
# ipython profile updates
when i want to write, i really want to write! i don't want to `import` modules i know i should have access to. i only care about this in interactive computing circumstances. i need to satisfy my compulsion to write new things, and avoid the old things. a revision stage after this initial burst will formalize the reuse of the module.
we're going to supply ourselves with better literate programming interfaces by defining a custom [ipython configuration file](https://ipython.org/ipython-doc/3/config/intro.html) that is loaded by default. once the configuration is applied we have a superior literate and functional programming vocabulary than we are normally offered.
when i want to write, i really want to write! i don't want to
import
modules i know i should have access to. i only care about this in interactive computing circumstances. i need to satisfy my compulsion to write new things, and avoid the old things. a revision stage after this initial burst will formalize the reuse of the module.
we're going to supply ourselves with better literate programming interfaces by defining a custom
ipython configuration file
that is loaded by default. once the configuration is applied we have a superior literate and functional programming vocabulary than we are normally offered.
defconfig_source():source="""from nobook.utils import Index, Series, DataFrame, doctest import midgy, anyio, pyperclip, importnb from pathlib import Path from IPython.display import * from dataclasses import dataclass, field from toolz.curried import * with importnb.Notebook(): from __llm_workflow import load_ipython_extension load_ipython_extension(get_ipython()) del load_ipython_extension [get_ipython().user_ns.setdefault(k, v) for k, v in __import__("sys").modules.items() if "." not in k] print("my config loaded") """c.InteractiveShellApp.exec_lines=source.splitlines()
all these modifications make it possible run this without any imports.
we start with imports, but could remove them after our configuration
was defined properly.
3
all these modifications make it possible run this without any imports.
we start with imports, but could remove them after our configuration
was defined properly.