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
Simply setting plotly.offline.init_notebook_mode(connected=True) results in a cPickle.PicklingError.
Traceback (most recent call last):
File "meh.py", line 13, in
results = pool.map(do_something, ["foo", "bar"])
File "/usr/local/lib/python2.7/multiprocessing/pool.py", line 251, in map
return self.map_async(func, iterable, chunksize).get()
File "/usr/local/lib/python2.7/multiprocessing/pool.py", line 567, in get
raise self._value
cPickle.PicklingError: Can't pickle : attribute lookup __builtin__.function failed
Example code:
import multiprocessing as mp
import plotly
plotly.offline.init_notebook_mode(connected=True)
def do_something(s):
return s
if __name__ == "__main__":
pool_size = mp.cpu_count()
pool = mp.Pool(processes=pool_size)
results = pool.map(do_something, ["foo", "bar"])
pool.close()
pool.join()
print results
The text was updated successfully, but these errors were encountered:
dsmale
changed the title
multiprocessying and offline mode results in pickle error.
multiprocessing and offline mode results in pickle error.
Jun 28, 2017
Simply setting plotly.offline.init_notebook_mode(connected=True) results in a cPickle.PicklingError.
Example code:
The text was updated successfully, but these errors were encountered: