Client initialization seems fine when creating the FBL Workspace for the first time.
However, when restarting the kernel using the reload button on the top of the Neu3D window, client initialization seems to repeat for multiple times. Here is a trace of what's executed from ipython history:
if 'fbl' not in globals():
import flybrainlab as fbl
fbl.init()
fbl.widget_manager.add_widget('Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531', 'client-Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531', 'LE', 'FBL-Comm:Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531')
if 'fbl' not in globals():
import flybrainlab as fbl
fbl.init()
fbl.widget_manager.add_widget('NeuGFX-3-a086cc16-f2b8-426f-a059-4056ed862502', 'client-Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531', 'vE', 'FBL-Comm:NeuGFX-3-a086cc16-f2b8-426f-a059-4056ed862502')
if 'fbl' not in globals():
import flybrainlab as fbl
fbl.init()
fbl.widget_manager.add_widget('Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531', 'client-Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531', 'LE', 'FBL-Comm:Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531')
if 'fbl' not in globals():
import flybrainlab as fbl
fbl.init()
fbl.widget_manager.add_widget('NeuGFX-3-a086cc16-f2b8-426f-a059-4056ed862502', 'client-Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531', 'vE', 'FBL-Comm:NeuGFX-3-a086cc16-f2b8-426f-a059-4056ed862502')
if 'fbl' not in globals():
import flybrainlab as fbl
fbl.init()
fbl.widget_manager.add_widget('Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531', 'client-Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531', 'LE', 'FBL-Comm:Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531')
if 'fbl' not in globals():
import flybrainlab as fbl
fbl.init()
fbl.widget_manager.add_widget('NeuGFX-3-a086cc16-f2b8-426f-a059-4056ed862502', 'client-Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531', 'vE', 'FBL-Comm:NeuGFX-3-a086cc16-f2b8-426f-a059-4056ed862502')
if 'fbl' not in globals():
import flybrainlab as fbl
fbl.init()
fbl.widget_manager.add_widget('Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531', 'client-Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531', 'LE', 'FBL-Comm:Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531')
if 'fbl' not in globals():
import flybrainlab as fbl
fbl.init()
fbl.widget_manager.add_widget('NeuGFX-3-a086cc16-f2b8-426f-a059-4056ed862502', 'client-Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531', 'vE', 'FBL-Comm:NeuGFX-3-a086cc16-f2b8-426f-a059-4056ed862502')
if 'fbl' not in globals():
import flybrainlab as fbl
fbl.init()
# if 'client-Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531' not in fbl.client_manager.clients:
_comm = fbl.MetaComm('client-Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531', fbl)
_client = fbl.Client(FFBOLabcomm=_comm,user='guest',secret='guestpass',ca_cert_file="isrgrootx1.pem",debug=False,url=u"ws://localhost:8081/ws",dataset="flycircuit",realm=u"realm1",)
fbl.client_manager.add_client('client-Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531', _client, client_widgets=['Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531'])
if 'fbl' not in globals():
import flybrainlab as fbl
fbl.init()
# if 'client-Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531' not in fbl.client_manager.clients:
_comm = fbl.MetaComm('client-Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531', fbl)
_client = fbl.Client(FFBOLabcomm=_comm,user='guest',secret='guestpass',ca_cert_file="isrgrootx1.pem",debug=False,url=u"ws://localhost:8081/ws",dataset="flycircuit",realm=u"realm1",)
fbl.client_manager.add_client('client-Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531', _client, client_widgets=['NeuGFX-3-a086cc16-f2b8-426f-a059-4056ed862502'])
if 'fbl' not in globals():
import flybrainlab as fbl
fbl.init()
# if 'client-Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531' not in fbl.client_manager.clients:
_comm = fbl.MetaComm('client-Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531', fbl)
_client = fbl.Client(FFBOLabcomm=_comm,user='guest',secret='guestpass',ca_cert_file="isrgrootx1.pem",debug=False,url=u"ws://localhost:8081/ws",dataset="flycircuit",realm=u"realm1",)
fbl.client_manager.add_client('client-Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531', _client, client_widgets=['Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531'])
if 'fbl' not in globals():
import flybrainlab as fbl
fbl.init()
# if 'client-Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531' not in fbl.client_manager.clients:
_comm = fbl.MetaComm('client-Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531', fbl)
_client = fbl.Client(FFBOLabcomm=_comm, user='guest',secret='guestpass',ca_cert_file="isrgrootx1.pem",debug=False,url=u"ws://localhost:8081/ws",dataset="flycircuit",realm=u"realm1",)
fbl.client_manager.add_client('client-Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531', _client, client_widgets=['NeuGFX-3-a086cc16-f2b8-426f-a059-4056ed862502'])
if 'fbl' not in globals():
import flybrainlab as fbl
fbl.init()
# if 'client-Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531' not in fbl.client_manager.clients:
_comm = fbl.MetaComm('client-Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531', fbl)
_client = fbl.Client(FFBOLabcomm=_comm, user='guest',secret='guestpass',ca_cert_file="isrgrootx1.pem",debug=False,url=u"ws://localhost:8081/ws",dataset="flycircuit",realm=u"realm1",)
fbl.client_manager.add_client('client-Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531', _client, client_widgets=['Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531'])
if 'fbl' not in globals():
import flybrainlab as fbl
fbl.init()
# if 'client-Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531' not in fbl.client_manager.clients:
_comm = fbl.MetaComm('client-Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531', fbl)
_client = fbl.Client(FFBOLabcomm=_comm, user='guest',secret='guestpass',ca_cert_file="isrgrootx1.pem",debug=False,url=u"ws://localhost:8081/ws",dataset="flycircuit",realm=u"realm1",)
fbl.client_manager.add_client('client-Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531', _client, client_widgets=['NeuGFX-3-a086cc16-f2b8-426f-a059-4056ed862502'])
if 'fbl' not in globals():
import flybrainlab as fbl
fbl.init()
# if 'client-Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531' not in fbl.client_manager.clients:
_comm = fbl.MetaComm('client-Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531', fbl)
_client = fbl.Client(FFBOLabcomm=_comm, user='guest',secret='guestpass',ca_cert_file="isrgrootx1.pem",debug=False,url=u"ws://localhost:8081/ws",dataset="flycircuit",realm=u"realm1",)
fbl.client_manager.add_client('client-Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531', _client, client_widgets=['Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531'])
if 'fbl' not in globals():
import flybrainlab as fbl
fbl.init()
# if 'client-Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531' not in fbl.client_manager.clients:
_comm = fbl.MetaComm('client-Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531', fbl)
_client = fbl.Client(FFBOLabcomm=_comm, user='guest',secret='guestpass',ca_cert_file="isrgrootx1.pem",debug=False,url=u"ws://localhost:8081/ws",dataset="flycircuit",realm=u"realm1",)
fbl.client_manager.add_client('client-Neu3D-3-255ccf72-9ac8-4dd9-b1d6-be386dd46531', _client, client_widgets=['NeuGFX-3-a086cc16-f2b8-426f-a059-4056ed862502'])
This is confirmed on the processor side, I see 16 new sessions attached to the processor.