HI, I m using simple dask delayed functions to perform lazy parallel computing in jupyter notebook ( kernel=python 3.7
The notebook import display and HTML as follows:
from IPython.display import display, HTML
display(HTML(“.container {width:100% !important;}”))
The dask set up is as follows:
def parallelProcess2(CORE_NUM,iterable, func,*args,**kwargs):
with dask.config.set(scheduler=‘processes’,num_workers=CORE_NUM):
f_par=functools.partial(func,*args,**kwargs);
tt=
for item in iterable:
xx=delayed(f_par)(item);
tt=tt+[xx];
#tt.visualize()
ret=compute(tt)[0];
print(type(ret),len(ret),ret[0])
return ret;
What is surprising and unwanted is that calling ParallelProcess2 produced many prints of the following HTML related tags. Any idea about how to prevent these printout from showing up in the notebook? Thanks.
<IPython.core.display.HTML object>
<IPython.core.display.HTML object>
<IPython.core.display.HTML object>
<IPython.core.display.HTML object>
<IPython.core.display.HTML object>
<IPython.core.display.HTML object>
<IPython.core.display.HTML object>
<IPython.core.display.HTML object>
<IPython.core.display.HTML object>
<IPython.core.display.HTML object>
<IPython.core.display.HTML object>
<IPython.core.display.HTML object>
<IPython.core.display.HTML object>
<IPython.core.display.HTML object>
<IPython.core.display.HTML object>
<IPython.core.display.HTML object>
<IPython.core.display.HTML object>
<IPython.core.display.HTML object>
<IPython.core.display.HTML object>
<IPython.core.display.HTML object>
<IPython.core.display.HTML object>
<IPython.core.display.HTML object>
<IPython.core.display.HTML object>
<IPython.core.display.HTML object>
<IPython.core.display.HTML object>
<IPython.core.display.HTML object>
<IPython.core.display.HTML object>