Are we able to import other module libraries and use them on the playground here? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Are we able to import other module libraries and use them on the playground here?

Can I somehow use the graphics.py from zelles library in this app?

2nd Mar 2020, 8:54 AM
Daniel Brinckerhoff
Daniel Brinckerhoff - avatar
2 Answers
+ 7
You can use this little trick to temporarily install few libraries here. import sys,subprocess def install(package): subprocess.call([sys.executable, "-m","pip","-q", "install", package]) install('your_library') import your_library ...
2nd Mar 2020, 9:13 AM
r8w9
r8w9 - avatar
+ 1
Thank you!
2nd Mar 2020, 2:25 PM
Daniel Brinckerhoff
Daniel Brinckerhoff - avatar