[Edu-sig] Re: Friendly-traceback: useful tool for those teaching Python

2021-02-08 Thread kirby urner
Me: If I ask for type(__builtins__) I get a list of all the things dicts can do, not the contents of the module. Of course I should have said dir(__builtins__) above (not type). Anyway, I was glad to clear this up. I’m guessing the use of both __builtin__ and __builtins__ is not Spyder’s

[Edu-sig] Re: Friendly-traceback: useful tool for those teaching Python

2021-02-08 Thread kirby urner
Andre: I think you mean simply __builtins__, without the dir(). I was puzzled by this remark at first but now I’m seeing why. When I boot into the Python shell directly from bash, and ask for the type of __builtins__ i.e. type(__builtins__), I get back that it’s a module. Then

[Edu-sig] Re: Friendly-traceback: useful tool for those teaching Python

2021-02-03 Thread Wes Turner
%doctest_mode? output from IPython probably needs to be wrapped in a fenced code block?: ```python >>> help(help) >>> help(dir) >>> dir(dir) >>> help(__import__('IPython.display.display')) ``` On Wed, Feb 3, 2021, 15:41 Wes Turner wrote: > You can export notebook inputs to (hopefully mostly

[Edu-sig] Re: Friendly-traceback: useful tool for those teaching Python

2021-02-03 Thread Wes Turner
You can export notebook inputs to (hopefully mostly hyperkitty-compatible) Markdown with jupytext: ```bash conda install -c jupytext jupyterlab jupyter-lab # Pair with Markdown, light, percent, hydrogen # Click refresh in the file pane to see the jupytext-linked copy ``` Pandoc can convert the

[Edu-sig] Re: Friendly-traceback: useful tool for those teaching Python

2021-02-03 Thread kirby urner
On Tue, Feb 2, 2021 at 11:28 AM André Roberge wrote: > > > On Tue, Feb 2, 2021 at 2:37 PM kirby urner wrote: > >> On Tue, Feb 2, 2021 at 5:48 AM André Roberge >> wrote: >> >>> Hello everyone, >>> >>> For about 20 months now, I have been working on a Python package >>> intended to help

[Edu-sig] Re: Friendly-traceback: useful tool for those teaching Python

2021-02-02 Thread André Roberge
On Tue, Feb 2, 2021 at 2:37 PM kirby urner wrote: > On Tue, Feb 2, 2021 at 5:48 AM André Roberge > wrote: > >> Hello everyone, >> >> For about 20 months now, I have been working on a Python package intended >> to help beginners figure out what went wrong when their program generates a >>

[Edu-sig] Re: Friendly-traceback: useful tool for those teaching Python

2021-02-02 Thread kirby urner
On Tue, Feb 2, 2021 at 5:48 AM André Roberge wrote: > Hello everyone, > > For about 20 months now, I have been working on a Python package intended > to help beginners figure out what went wrong when their program generates a > traceback. This package is called Friendly-traceback; you can find