Marc
July 9, 2020, 11:19am
12
@Jhsmit and others looking at this thread. There is a different approach (and more powerful I believe) here by @Material-Scientist that can also be used as inspiration.
Hi all,
It took me a while to get around the document lock issues, but I’ve found a way to supply a panel app with a worker-thread that gets live-data.
Others will probably also deal with this issue, so I decided to show my approach:
Notebook 1 - Pub
import pandas as pd
import numpy as np
from streamz import Stream
from dask.distributed import Client, Pub, Sub
import warnings
warnings.filterwarnings('ignore')
client = Client(n_workers=8)
pub = Pub('test',client=client)
client
This will cre…
2 Likes