Skip to content

Importing plotly takes a lot of time #740

Closed
@legg681

Description

@legg681

Hello,
I hope this is the right place to ask, but is it normal, that plotly takes a huge amount of time? I have two PCs both with SSDs and Anaconda installed. To the default anaconda installation I added plotly by running

 conda install plotly

On both PCs the time to import plotly is just enormous. On my desktop PC running Ubuntu 17.04 64-Bit

time python -c "import matplotlib"
real	0m0.150s
user	0m0.140s
sys	0m0.008s


time python -c "import pandas"

real	0m0.384s
user	0m0.340s
sys	0m0.040s


time python -c "import plotly"

real	0m2.184s
user	0m1.156s
sys	0m0.072s

and on my Laptop running Windows 7 64-Bit

time python -c "import matplotlib"
real	0m0.442s
user	0m0.015s
sys	0m0.000s


time python -c "import pandas"

real	0m0.933s
user	0m0.016s
sys	0m0.015s


time python -c "import plotly"

real	0m4.881s
user	0m0.015s
sys	0m0.016s

Is this in the normal range?

EDIT: I upgraded my plotly version from 1.12.9 to 2.0.7 and the times dropped significantly, albeit still high. Nice to see the progress being made. Now it's:

Ubuntu

real	0m0.834s
user	0m0.788s
sys	0m0.044s

Windows

real	0m2.816s
user	0m0.000s
sys	0m0.015s

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions