Plotly backend for Pandas

I would like to use Plotly backend to plot Pandas data. When I try to set the backend

import numpy as np
import pandas as pd
import datetime as dt 
import plotly.express as px
pd.set_option("plotting.backend", "plotly")

I get the following error message

ValueError: Could not find plotting backend 'plotly'. Ensure that you've installed the package providing the 'plotly' entrypoint, or that the package has a top-level `.plot` method.

The same code works on my jupyterlab on my pc.

Hello Stefano,

I understand you are using the LCG 102b software stack in SWAN, which is set by default when you start you session. That stack has an older version of plotly that does not provide a backend for pandas.

In order to use an updated version of plotly, you can select the “Bleeding edge” software stack in the web form when you start you SWAN session. If you do that, the code snippet above should work. This new version of plotly will also make it into the forthcoming LCG 104, which we will make available in SWAN when it is published. But for now you can just use “Bleeding edge”.

Cheers,

Enric

Thanks a lot !!!