You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
).
This causes an issue when running outside of a jupyter notebook, as shown below. I noted that there is a show_progress_bar option in parallelize, but no way of passing kwargs via an execution point of the velocity_graph function.
A fix for this would be to add an option to set show_progress_bar=False in parallelize when calling velocity_graph.
Traceback (most recent call last):
File "/shared/miniconda3/envs/geneformer/lib/python3.8/site-packages/traitlets/traitlets.py", line 653, in get
value = obj._trait_values[self.name]
KeyError: 'layout'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "process_velocity_looms.py", line 29, in <module>
scv.tl.velocity_graph(ldata, n_jobs=64)
File "/shared/miniconda3/envs/geneformer/lib/python3.8/site-packages/scvelo/tools/velocity_graph.py", line 373, in v
elocity_graph
vgraph.compute_cosines(n_jobs=n_jobs, backend=backend)
File "/shared/miniconda3/envs/geneformer/lib/python3.8/site-packages/scvelo/tools/velocity_graph.py", line 185, in c
ompute_cosines
res = parallelize(
File "/shared/miniconda3/envs/geneformer/lib/python3.8/site-packages/scvelo/core/_parallelize.py", line 120, in wrap
per
pbar =Noneif tqdm isNoneelse tqdm(total=col_len, unit=unit)
File "/shared/miniconda3/envs/geneformer/lib/python3.8/site-packages/tqdm/notebook.py", line 233, in __init__self.container =self.status_printer(self.fp, total, self.desc, self.ncols)
File "/shared/miniconda3/envs/geneformer/lib/python3.8/site-packages/tqdm/notebook.py", line 110, in status_printer
pbar = IProgress(min=0, max=total)
File "/shared/miniconda3/envs/geneformer/lib/python3.8/site-packages/ipywidgets/widgets/widget_float.py", line 26, i
n __init__
super().__init__(**kwargs)
File "/shared/miniconda3/envs/geneformer/lib/python3.8/site-packages/ipywidgets/widgets/widget_description.py", line
35, in __init__
super().__init__(*args, **kwargs)
File "/shared/miniconda3/envs/geneformer/lib/python3.8/site-packages/ipywidgets/widgets/widget.py", line 504, in __i
nit__
self.open()
File "/shared/miniconda3/envs/geneformer/lib/python3.8/site-packages/ipywidgets/widgets/widget.py", line 517, in ope
n
state, buffer_paths, buffers = _remove_buffers(self.get_state())
File "/shared/miniconda3/envs/geneformer/lib/python3.8/site-packages/ipywidgets/widgets/widget.py", line 615, in get
_state
value = to_json(getattr(self, k), self)
File "/shared/miniconda3/envs/geneformer/lib/python3.8/site-packages/traitlets/traitlets.py", line 700, in __get__returnself.get(obj, cls)
File "/shared/miniconda3/envs/geneformer/lib/python3.8/site-packages/traitlets/traitlets.py", line 656, in get
default = obj.trait_defaults(self.name)
File "/shared/miniconda3/envs/geneformer/lib/python3.8/site-packages/traitlets/traitlets.py", line 1868, in trait_defaultsreturnself._get_trait_default_generator(names[0])(self)
File "/shared/miniconda3/envs/geneformer/lib/python3.8/site-packages/traitlets/traitlets.py", line 624, in defaultreturnself.make_dynamic_default()
File "/shared/miniconda3/envs/geneformer/lib/python3.8/site-packages/ipywidgets/widgets/trait_types.py", line 365, in make_dynamic_defaultreturnself.klass(*(self.default_args or ()),
File "/shared/miniconda3/envs/geneformer/lib/python3.8/site-packages/ipywidgets/widgets/widget_layout.py", line 86, in __init__super().__init__(**kwargs)
File "/shared/miniconda3/envs/geneformer/lib/python3.8/site-packages/ipywidgets/widgets/widget.py", line 504, in __init__self.open()
File "/shared/miniconda3/envs/geneformer/lib/python3.8/site-packages/ipywidgets/widgets/widget.py", line 535, in openself.comm = create_comm(**args)
File "/shared/miniconda3/envs/geneformer/lib/python3.8/site-packages/comm/__init__.py", line 27, in _create_commraiseNotImplementedError("Cannot ")
NotImplementedError: Cannot
Exception ignored in: <function tqdm.__del__ at 0x7f2598201d30>
Traceback (most recent call last):
File "/shared/miniconda3/envs/geneformer/lib/python3.8/site-packages/tqdm/std.py", line 1149, in __del__self.close()
File "/shared/miniconda3/envs/geneformer/lib/python3.8/site-packages/tqdm/notebook.py", line 278, in closeself.disp(bar_style='danger', check_delay=False)
Not a scvelo issue as far as I can tell but an issue in traitlets. I've added arguments to optionally display the progress bar, nonetheless. See #1234.
velocity_graph
usestqdm.notebook
via [the parallelize function].(scvelo/scvelo/core/_parallelize.py
Line 29 in d89ca6a
This causes an issue when running outside of a jupyter notebook, as shown below. I noted that there is a
show_progress_bar
option in parallelize, but no way of passing kwargs via an execution point of thevelocity_graph
function.A fix for this would be to add an option to set
show_progress_bar=False
inparallelize
when callingvelocity_graph
.Error output
Versions
The text was updated successfully, but these errors were encountered: