jupyterlab-dash icon indicating copy to clipboard operation
jupyterlab-dash copied to clipboard

Add support for Windows

Open mungojam opened this issue 7 years ago • 10 comments

This looks great, but I see that Windows isn't currently supported. It would be lovely to have this extension available to us

mungojam avatar Dec 06 '18 22:12 mungojam

For context, the reason Windows support is not straightforward is that we're using the Python multiprocessing module to launch the Dash server in the background. On Windows the multiprocessing module has some significant limitations (https://docs.python.org/2/library/multiprocessing.html#windows).

An alternative for Windows would be to use the threading module, but this has the limitation that it's not possible to forcibly terminate a thread when it's time to shut down the Dash server from the main process.

The best way forward is probably to use the threading module and work out a way to signal to the Dash server thread, from the main process, that it's time to shut down.

jonmmease avatar Mar 27 '19 10:03 jonmmease

Any updates on this front?

Data-Driven-Allocator avatar Jun 13 '19 09:06 Data-Driven-Allocator

I've been using Python Plotly (love it) but became jealous when I saw the awesome table support in Plotly Dash so wanted to try it out, but I'm in windows + Jupyterlab. Still battling with the windows threading limitation?

lcorrigan avatar Aug 14 '19 14:08 lcorrigan

For context, the reason Windows support is not straightforward is that we're using the Python multiprocessing module to launch the Dash server in the background. On Windows the multiprocessing module has some significant limitations (https://docs.python.org/2/library/multiprocessing.html#windows).

An alternative for Windows would be to use the threading module, but this has the limitation that it's not possible to forcibly terminate a thread when it's time to shut down the Dash server from the main process.

The best way forward is probably to use the threading module and work out a way to signal to the Dash server thread, from the main process, that it's time to shut down.

Hello all,

I don't think I can grasp the complexity of making Dash run on Jupyterlab on Windows. Thanks for your efforts. Do you have any potential updates or workarounds ?

Thanks in advance :)

fabienjammes avatar Aug 19 '19 08:08 fabienjammes

@jonmmease Would an approach using signals, similar to what is described in this post, be acceptable?

IvoMerchiers avatar Aug 29 '19 06:08 IvoMerchiers

Thanks for the suggestion @IvoMerchiers, that does look like a promising approach!

jonmmease avatar Aug 29 '19 12:08 jonmmease

@jonmmease Alright, if nobody else is currently working on it, I'll see if I can tackle the issue. Are there any specific guidelines for contributing?

IvoMerchiers avatar Aug 30 '19 08:08 IvoMerchiers

+1 for Windows support. In the meantime, jupyter-plotly-dash is a good alternative.

aminfardi avatar Oct 15 '19 21:10 aminfardi

Also in the meantime, you can set up Jupyterlab in WSL and run jupyterlab-dash just fine.

Jerdak avatar Dec 12 '19 00:12 Jerdak

Hi all! This project is being replaced by the more capable JupyterDash project which does support Windows. This repo is going to be archived shortly in favor of the new project.

jonmmease avatar May 20 '20 00:05 jonmmease