pdit: The Python Un-Notebook for Coding Agents
harry.vangberg.name
pdit: The Python Un-Notebook for Coding Agents
1–4 of 4 posts
Re: pdit: The Python Un-Notebook for Coding Agents
#2What does this mean though: "By default, pdit shows output from each top level expression" ?
Re: pdit: The Python Un-Notebook for Coding Agents
#3I like it. I could see myself using it for quick verification of code. What does this mean though: "By default, pdit shows output from each top level expression" ?
[1, 2, 3]
"foo bar"
The default in notebooks is to just render/show the value of the last expression (`"foo bar"`). In pdit, the value of all top-level expressions are rendered/shown: [1, 2, 3] #=> [1, 2, 3]
"foo bar" #=> "foo bar"
In that way it is more like a REPL than a notebook, you could say.Re: pdit: The Python Un-Notebook for Coding Agents
#4I like it. I could see myself using it for quick verification of code. What does this mean though: "By default, pdit shows output from each top level expression" ?
Consider a notebook with a cell with two lines of code: [1, 2, 3] "foo bar" The default in notebooks is to just render/show the value of the last expression (`"foo bar"`). In pdit, the value of all top-level expressions are rendered/shown: [1, 2, 3] #=> [1, 2, 3] "foo bar" #=> "foo bar" In that way it is more like a REPL than a notebook, you could say.