Closed juliettelavoie closed 8 months ago
oups just saw #176
In a python file, Dask's multiprocessing initializes the workers with the state of the python process before if __name__ == '__main__'
. In a notebook, all the code is executed after the equivalent. Thus, imports in any cell are not included in the initial state of the worker.
When to_dask
is executed, the code sent to the workers includes references to intake-esm
which is then imported automatically. However, it does not include any reference to xscen, which is then not imported, and the attrs_prefix
option is never updated.
Setup Information
Description
The attrs_prefix
cat:
doesn't work when in a jupyter notebook and under a dask client. Instead, we haveintake_esm_attrs:
Steps To Reproduce
in a jupyter notebook
gives
but
gives
Additional context
intake_esm.set_options(attrs_prefix="cat")
does nothing.Contribution