Home > other >  Under the spyder pyecharts fail to load
Under the spyder pyecharts fail to load

Time:10-11

Operation under the Anaconda3 (64 - bit) with spyder pyecharts sample code error,

Tip: ImportError: always import a name 'Bar'

But under the IPython running is normal, somehow

The sample code is as follows:

The from pyecharts import Bar
X=Bar (" my first chart ", "here is the subtitle")
X.a dd (" clothing, "[" shirt" and "sweater", "snow spins unlined upper garment", "pants", "high heels", "socks"], [5, 20, 36, 10, 75, 90])
X.a dd (" home ", "toilet", "mattress", "chest", "chair", "sofa", "cabinet"], [20, 17, 8, 66, 70, 150])
# x.s how_config ()
X.r ender ()

CodePudding user response:

No one know

CodePudding user response:

IPython running under normal, spyder run error always import the name 'Bar', should be your file name to pyecharts!
  • Related