-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversion fails with Scattergl #236
Comments
Thanks very much for reporting! A few questions:
@jonmmease any ideas on why this could happen? |
The machine I'm running on is basically configured like this:
I tried testing Scatter/Scattergl on the jupyter linux guest and I get the following error with Scattergl there:
Scatter works. Additionally now I have a lot of orca-...AppImage processes running. Do they get closed eventually? |
Hi @Nikolai-Hlubek , As of plotly.py 3.10, you can let plotly.py handle calling xvfb for you. See plotly/plotly.py#1523. This is worth a try because then xvfb will be called with arguments/flags that should work with all of the plotly trace types. With this approach you make sure xvfb is installed and on the path, but you point plotly.py to the plain orca executable (not the script that calls orca with xvfb). Then you set import plotly.io as pio
pio.orca.config.use_xvfb = True
You should end up with 3 orca/electron process when orca server starts up the first time (on the first image export by default). plotly.py attempts to shut them down when the python process is killed, but this isn't always completely reliable depending on how the process is shut down. You can manually shut down the orca server by calling
|
Dear @jonmmease Thanks for your help. I tried your suggestion and have orca and Xvfb in the path.
However I still get the same error messages as above when I run the scripts via jupyter or directly on the linux host. Additionally after trying to run the commands a few times, opening and closing the notebook I'm left with the following processes:
|
I have the same problem. I export my import plotly.io as pio
pio.orca.config.use_xvfb = True etc., but none of them works. BTW, |
If I want to create an offline plot that contains the plotly Scattergl command I get an error message.
Consider the example below (which is run through a jupyter notebook with linux host and windows guest):
This will give the following error:
Changing Scattergl to Scatter will make the example work.
The text was updated successfully, but these errors were encountered: