jupyter_server
jupyter_server copied to clipboard
How to detect standalone mode
For voila, we need to know if voila was started with the voila
command (in other words, if we are in standalone mode).
Because in that case, we do not want to have arbitrary code execution (so we disallow execute_request).
I have a fix for this here: https://github.com/davidbrochart/voila/pull/1/commits/e640cdf910648ed2f38bffd7b42600fd4d401b41
But this seems like a bit of a brittle way, are there better ways to detect this?