'How to clear screen in Julia REPL on Windows

How do you clear screen while using Julia REPL, using ctrl +L just scrolls down enough for it to look clean, but the variables still hold the same value, is there any alternative other than closing and reopening it? I came across using shell>clear, but it shows : could not spawn 'clear' https://i.stack.imgur.com/dJFBn.png



Solution 1:[1]

It's not entirely clear what you're asking, but given you are worried about "variables still holding the same value", I assume that you are looking for a way to clear the workspace of all defined objects to get back the state you would be in if you restarted your Julia session.

If this is indeed what you are after, the answer is this doesn't exist. See related dicsussions on Julia Discourse here and here.

Solution 2:[2]

I see you're running in Windows, so maybe there's another program with the same shortcut binding and that's why you don't see the REPL's screen cleared. As per this discussion, Ctrl + L should do (in my Linux box with xfce-terminal, it works like that). Otherwise, I'd suggest you post your question in e.g. Julia's slack group.

Good luck! ?

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Nils Gudat
Solution 2 Orco