r/IPython • • 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

3 comments sorted by

View all comments

Show parent comment

1

u/tuck5649 May 10 '18

Thanks! Didn't know about that.