Coder Social home page Coder Social logo

Unpinning Plotly about pygsti HOT 4 CLOSED

caldwellshane avatar caldwellshane commented on July 26, 2024
Unpinning Plotly

from pygsti.

Comments (4)

robpkelly avatar robpkelly commented on July 26, 2024

Good question!

An API change in plotly 4.1 broke one of our tests, but I'm not sure it actually broke the underlying functionality. So for the time being, I think you should be able to just use plotly 4.1 without breaking pygsti. Please let us know if that breaks anything.

@enielse Thoughts? Here's the build that broke on import plotly.plotly. Removing that import doesn't actually break the test -- we could push a patch unpinning plotly and removing that import, but I'll want to test across python versions first.

from pygsti.

caldwellshane avatar caldwellshane commented on July 26, 2024

I haven't looked into this on the pyGSTi side, but I'm hitting this with Plotly 4.1.0:

>>> from pygsti.construction import std1Q_XY
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-3-f5ce25d46596> in <module>
----> 1 from pygsti.construction import std1Q_XY

~/miniconda3/envs/w/lib/python3.6/site-packages/pygsti/construction/std1Q_XY.py in <module>
     12 from . import gatestringconstruction as _strc
     13 from . import gatesetconstruction as _setc
---> 14 from . import stdtarget as _stdtarget
     15 from collections import OrderedDict as _OrderedDict
     16

~/miniconda3/envs/w/lib/python3.6/site-packages/pygsti/construction/stdtarget.py in <module>
     16
     17 from . import stdlists as _stdlists
---> 18 from .. import objects as _objs
     19 from ..tools import mpitools as _mpit
     20

~/miniconda3/envs/w/lib/python3.6/site-packages/pygsti/__init__.py in <module>
     13 from . import construction as cst
     14 from . import objects as obj
---> 15 from . import report as rpt
     16
     17 from .algorithms.core import *

~/miniconda3/envs/w/lib/python3.6/site-packages/pygsti/report/__init__.py in <module>
     10 # the package namespace
     11 from .reportables import *
---> 12 from .factory import *
     13 from .workspace import Workspace
     14 from .notebook import Notebook

~/miniconda3/envs/w/lib/python3.6/site-packages/pygsti/report/factory.py in <module>
     24 from .. import _version
     25
---> 26 from . import workspace as _ws
     27 from . import autotitle as _autotitle
     28 from . import merge_helpers as _merge

~/miniconda3/envs/w/lib/python3.6/site-packages/pygsti/report/workspace.py in <module>
     24 from ..baseobjs import CustomDigestError as _CustomDigestError
     25
---> 26 from . import plotly_plot_ex as _plotly_ex
     27 from . import merge_helpers as _merge
     28

~/miniconda3/envs/w/lib/python3.6/site-packages/pygsti/report/plotly_plot_ex.py in <module>
      9 import os as _os
     10 from plotly import tools as _plotlytools
---> 11 from plotly.offline.offline import _plot_html
     12 #from plotly.offline.offline import get_plotlyjs
     13 #from plotly.offline.offline import __PLOTLY_OFFLINE_INITIALIZED

ImportError: cannot import name '_plot_html'

from pygsti.

caldwellshane avatar caldwellshane commented on July 26, 2024

Just double checked on this, and the above is due to my mistakenly being on an older tag of pyGSTi. Indeed things do seem to work on the latest tag. Sorry for the false alarm.

from pygsti.

caldwellshane avatar caldwellshane commented on July 26, 2024

Actually I think this is still an issue, even though I'm no longer immediately blocked. Ideally we would still unpin the Plotly version, so maybe my closing it was premature.

from pygsti.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.