Notebook: Run server in background or minimize to service tray?

Created on 20 Sep 2016  路  2Comments  路  Source: jupyter/notebook

Is this possible? I have yet to have a use for the information in the server terminal window and I find it adds to clutter on my desktop.

Thanks

Most helpful comment

I guess you refer to using a Notebook server on Windows.
You can try to execute the Notebook server with a VSB script:

Dim oShell
Set oShell = WScript.CreateObject ("WScript.Shell")
oShell.run "C:\Anaconda\python.exe C:\Anaconda\Scripts\ipython-script.py notebook", 0
Set oShell = Nothing

Setting intWindowStyle parameter of the object.Run(strCommand, [intWindowStyle], [bWaitOnReturn]) to 0 results in hiding the window. Details for Windows Script Host

The only drawback is that you will need to kill the notebook server using a Task Manager (loop for the Python executable) or using pskill or similar.

All 2 comments

I guess you refer to using a Notebook server on Windows.
You can try to execute the Notebook server with a VSB script:

Dim oShell
Set oShell = WScript.CreateObject ("WScript.Shell")
oShell.run "C:\Anaconda\python.exe C:\Anaconda\Scripts\ipython-script.py notebook", 0
Set oShell = Nothing

Setting intWindowStyle parameter of the object.Run(strCommand, [intWindowStyle], [bWaitOnReturn]) to 0 results in hiding the window. Details for Windows Script Host

The only drawback is that you will need to kill the notebook server using a Task Manager (loop for the Python executable) or using pskill or similar.

Yes, I meant on Windows. Thanks this is fine. I want to switch back to linux but one program is holding me back at the moment. I plan on forking a project to suit my needs but till then I am stuck with stupid and clunky windows.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

arilwan picture arilwan  路  3Comments

arbaazsama picture arbaazsama  路  3Comments

fonnesbeck picture fonnesbeck  路  3Comments

cancan101 picture cancan101  路  3Comments

ehossain1982 picture ehossain1982  路  3Comments