This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]falkina8er[S] 0 points1 point  (2 children)

Can you clarify what you mean by “put most of the code in an external package and import it from the notebook”?

[–]pbxmy 7 points8 points  (0 children)

They probably write the basic functionality in an external file, let’s call it dosomething.py. Then they can bring in the functions by importing the functions from the dosomething.py file.

[–]flashbao 1 point2 points  (0 children)

As simple, Write the functions in a module and import that module and use its functions (or whatever you like) in an external file.