python2jupyter icon indicating copy to clipboard operation
python2jupyter copied to clipboard

Functions and keeping code together

Open demongolem opened this issue 5 years ago • 0 comments

In general, I am getting what I would expect which is very useful. However, functions are always a tricky one with jupyter notebook because (and correct me if I am wrong) an entire function must be kept together in the same cell, no matter how long that function might be. And when p2j runs into functions it tries to apply the same mechanisms as outside functions, which splits the functions up into multiple code cells which leads to errors.

Is there a mechanism or could there be a mechanism to treat the inside of functions differently?

Perhaps this all comes down to does jupyter encourage poor coding practices for the sake of rapid prototyping which is beyond the scope of this package.

demongolem avatar Nov 12 '20 17:11 demongolem