bluesky / bluesky-queueserver

Server for queueing plans
https://blueskyproject.io/bluesky-queueserver/
BSD 3-Clause "New" or "Revised" License
11 stars 20 forks source link

Run Jupyter Console as a separate process (qserver-console) #272

Closed dmgav closed 1 year ago

dmgav commented 1 year ago

Minor change to functionality of qserver-console CLI app. Jupyter Console is now started using os.execl (replaces the current process) instead of being started as a subprocess. The qserver-console application is loading connection info from RE Manager, creates the connection file and starts Jupyter Console. Jupyter Console exhibited some strange behavior when running as a subprocess. For example the Linux terminal had to be reset to continue operation after quitting the console while running a plan. Now the console is running as an individual process.

Added new entry point: qserver-qtconsole, which behaves similary to qserver-console, but starts Jupyter Qt Console connected to IPython kernel running in the worker process.

The PR also contains small number of tests for basic functionality of IPython-based worker.

Added