I managed to pass my globals() to the console while creating it but then after how to update the console namespace then?
namespace = {'pg': pg, 'np': np, 'outlet':outlet, 'inlet':inlet, 'dft1':dft1}
text = ""
w2 = pg.console.ConsoleWidget(namespace=globals(), text=text)
d2.addWidget(w2) #added my consoleWidget to a dock
#all this woks well BUT how to update the namespace after...?
//...... other code and update all variables in my main routine.....///
I tried these below but nothing works and can't find a proper definition of what would work ... even the log is not logged...
w2.user_ns.update(zob = 123)
w2.consoleWidget.log("prout=123")
w2.kernel.shell.push({'lfilename':lfilename,'inlet':inlet, 'outlet':outlet})
w2.pushVariables(prout=123)
any idea?
Best
Robert