jupyter_server icon indicating copy to clipboard operation
jupyter_server copied to clipboard

How to detect standalone mode

Open maartenbreddels opened this issue 4 years ago • 1 comments

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?

maartenbreddels avatar May 15 '20 14:05 maartenbreddels