There *is* also the '%load' magic. But 'from my_stuff import *' is almost always a better idea.
On Fri, Aug 2, 2019, 2:49 PM Christopher Barker firstname.lastname@example.org wrote:
Getting really OT now, but quickly:
On Fri, Aug 2, 2019 at 11:28 AM Chris Angelico email@example.com wrote:
On Sat, Aug 3, 2019 at 4:19 AM Ricky Teachey firstname.lastname@example.org wrote:
Remember that Jupyter has a pretty nice text editor
Actually, I think it's pretty darn crappy -- at least compared to any "proper" coding editor...
Although I didn't know you could import a .py file into a cell.
I think he means putting:
in a cell, like any other python code.
And yes, you can do that, and students should, but the fact is that Jupyter encourages people to write al their code in the notebook.
-- Christopher Barker, PhD
Python Language Consulting
- Scientific Software Development
- Desktop GUI and Web Development
- wxPython, numpy, scipy, Cython
Python-ideas mailing list -- email@example.com To unsubscribe send an email to firstname.lastname@example.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://email@example.com/message/ANBYE6... Code of Conduct: http://python.org/psf/codeofconduct/