Clear the console screen

Question:
from replit import clear => doen’t work
I see there is no repli.py available on the left window under main.py
Is this the cause?
Where can i find it?

Replit Profile: https://replit.com/@marcdewaersegge

Hey @marcdewaersegge!

Do you get any errors when you run it with clear()?

You cannot find a replit.py because it doesn’t exist as a Python file in your Repl, when using the Replit import it is actually a package that is being used. Try typing pip install replit or poetry add replit. I hope this helps!

2 Likes

Well replit-py/__init__.py would be in .pythonlibs/lib/python3.10/site-packages, but yeah

3 Likes

Replit was now without my handling installing several updates. Strange.
Now the clear() function is working.

1 Like

yep, it gets the packages needed for your imports, but this doesn’t happen until you either run the repl or run in Shell:

upm add `upm guess`
3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.