r/IPython • u/OneMatzo • May 10 '18
Custom module not running in Notebook
Hi all,
Say I have the following in my notebook:
// some code // bunch of other code
It runs perfectly, but if I try to create a bunchofothercode.py file and put // bunch of other code in it, and then:
// some code import bunchofothercode
This doesn't give any errors, but it doesn't run the code.
I'm sure I am missing something, but I don't know what :)
1
Upvotes
View all comments
Show parent comment
2
u/NomadNella May 10 '18
While testing I use the %run magic instead of importing so I don't have to restart with each change.