I am trying to open jupyter notebook in a thread in order to capture the token of the output command, my script is opening jupyter, but seems that script get blocked because