Comments (4)
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.
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.
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.
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)
- CloudNoiseModel needs better callable op logic
- Pickles are Bad, JSON is Good
- Deprecation of DenseOperatorInterface
- Investigate benefits of ``__slots__`` for core classes
- Audit code for use of list comprehensions where generators would be faster HOT 2
- Forward Simulator Dprobs Bugs with Instruments
- Audit usage of linalg.inv
- Error gen projection basis must be Basis object HOT 1
- Method `parameter_labels()` returns an empty array HOT 1
- 1/2 Diamond Norm Errorbars
- Raw Estimates Errorbars for TPInstrument HOT 1
- CP Instruments & Instrument Error Generators
- QI Report Fixes & Additions
- Wildcard w/ QILGST
- Fisher Information w/ Experiment Designs Containing MCMs
- Explicit Model Construction from MCM-Containing Pspec
- Help with detecting crosstalk errors of simulated data
- Serialization Issue w/ Processor Spec Nonstd_Instruments HOT 1
- Numpy version dependency HOT 1
- Gswap cannot be used as a two-qubit standard native gate for two-qubit RB as CliffordCompilationRules taking too long
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pygsti.