← Back to Community
Hiding Functions
Profile icon
Barnesr

I want my students to use this repl to play with the functions to draw different images.
When I have done this in python or trinket.io I have placed all of the functions in a separate file and imported them so that pupils are not distracted by the code for the functions.
Example:
https://trinket.io/python/1d4b01c741

Is there a way to hide them in REPL (lines 9 to 61). When using turtle there does not seem to be the option for multiple files and opening a repl seems to default to expanding all code.

Voters
Profile icon
CullenBoroski
Profile icon
JonathanHirsch1
Profile icon
cbeltr5722
Profile icon
Leodaboss
Profile icon
GabrielChiney
Profile icon
Barnesr
Comments
hotnewtop
Profile icon
ash15khng

I don't think you can on a Python with Turtle repl sadly.

Profile icon
Barnesr

@ash15khng Thanks. Can you import functions from another repl?

Profile icon
ash15khng

@Barnesr In Python with turtle I don't think imports really work, and I don't think there's a way to import from repl.