Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Clear output

Clear output

New Contributor

Hello,

 

Is it possible to clear the notebook output by command line ?

 

I have tried :

!clear

%clear

IPython.display.clear_output()

 

But none of them clear the notebook output.

 

Have a good day.

2 REPLIES 2
Highlighted

Re: Clear output

Cloudera Employee

In mac, [control] + l clears the notebook outputs. 

Highlighted

Re: Clear output

New Contributor

Hello Police,

Thanks for your response but I am looking for a scripting one.

 

My goal is to let a session running and querying some informations (KPI) and refresh it every 10 minutes for example.

But I don't want to see every value one under each others but just the last one.

So my idea was to run the query, wait for 10 minutes, clear the output and run the query again.

Don't have an account?
Coming from Hortonworks? Activate your account here