fsprojects/IfSharp

Don't start jupyter when registering kernelspec

vickumar1981 opened this issue · 3 comments

Description

Is it possible to not start jupyter when registering kernelspec? everything registers fine and works, but when i run mono ifsharp.exe, it attempts to start the jupyter server, and I would like to do that manually, in a later step in my Dockerfile. I can suppress the error which works fine, just wondering if that behavior could be circumvented.

Repro steps

  1. Run mono ifsharp.exe

Expected behavior

I would expect that running mono ifsharp.exe would only register the kernelspec in Jupyter and then nothing more. To start jupyter, I can just run the command jupyterhub or jupyter notebook later.

Actual behavior

Attempts to start jupyter after registering the kernelspec for F#

Known workarounds

Suppress the error by using set +e.

Related information

  • Ubuntu 18
  • Mono 6.6

Yes, if you pass --install it'll just do the install and not also launch.

I've only confirmed on Windows but you should be able to do:
mono ifsharp.exe --install

👍 thanks. didn't know about that switch.

You're welcome. It's not documented as it's a bit specialized but it's intended for exactly your sort of need:

RUN mono src/IfSharp/bin/Release/ifsharp.exe --install