basic_classification.ipynb plot error
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 42/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- jupyter-notebook, matplotlib, python
- Ambito
- data-visualization
Direzione di ricerca
Open basic_classification.ipynb and reproduce the plt.plot(X, f, 'bo') line with the reported Python 3.5.1, IPython 4.1.2, and notebook server 4.1.0 environment. Start with the traceback's matplotlib TeX and dvipng path; the issue is done when the plot renders without the post-execute callback error.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Using
The version of the notebook server is 4.1.0 and is running on:
Python 3.5.1 |Anaconda custom (64-bit)| (default, Dec 7 2015, 11:16:01)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)]
Current Kernel Information:
Python 3.5.1 |Anaconda custom (64-bit)| (default, Dec 7 2015, 11:16:01)
IPython 4.1.2 -- An enhanced Interactive Python.
plt.plot(X, f, 'bo') line in basic_classification.ipynb gives the error below
[<matplotlib.lines.Line2D at 0x7f1244069748>]
Error in callback <function install_repl_displayhook..post_execute at 0x7f124f6e2950> (for post_execute):
RuntimeError Traceback (most recent call last)
/home/ave/anaconda3/lib/python3.5/site-packages/matplotlib/pyplot.py in post_execute()
145 def post_execute():
146 if matplotlib.is_interactive():
--> 147 draw_all()
148
149 # IPython >= 2/home/ave/anaconda3/lib/python3.5/site-packages/matplotlib/_pylab_helpers.py in draw_all(cls, force)
148 for f_mgr in cls.get_all_fig_managers():
149 if force or f_mgr.canvas.figure.stale:
--> 150 f_mgr.canvas.draw_idle()
151
152 atexit.register(Gcf.destroy_all)/home/ave/anaconda3/lib/python3.5/site-packages/matplotlib/backend_bases.py in draw_idle(self, _args, *_kwargs)
2024 if not self._is_idle_drawing:
2025 with self._idle_draw_cntx():
-> 2026 self.draw(_args, *_kwargs)
2027
2028 def draw_cursor(self, event):/home/ave/anaconda3/lib/python3.5/contextlib.py in exit(self, type, value, traceback)
75 value = type()
76 try:
---> 77 self.gen.throw(type, value, traceback)
78 raise RuntimeError("generator didn't stop after throw()")
79 except StopIteration as exc:/home/ave/anaconda3/lib/python3.5/site-packages/matplotlib/backend_bases.py in _idle_draw_cntx(self)
1698 def _idle_draw_cntx(self):
1699 self._is_idle_drawing = True
-> 1700 yield
1701 self._is_idle_drawing = False
1702/home/ave/anaconda3/lib/python3.5/site-packages/matplotlib/backend_bases.py in draw_idle(self, _args, *_kwargs)
2024 if not self._is_idle_drawing:
2025 with self._idle_draw_cntx():
-> 2026 self.draw(_args, *_kwargs)
2027
2028 def draw_cursor(self, event):/home/ave/anaconda3/lib/python3.5/site-packages/matplotlib/backends/backend_agg.py in draw(self)
472
473 try:
--> 474 self.figure.draw(self.renderer)
475 finally:
476 RendererAgg.lock.release()/home/ave/anaconda3/lib/python3.5/site-packages/matplotlib/artist.py in draw_wrapper(artist, renderer, _args, *_kwargs)
59 def draw_wrapper(artist, renderer, _args, *_kwargs):
60 before(artist, renderer)
---> 61 draw(artist, renderer, _args, *_kwargs)
62 after(artist, renderer)
63/home/ave/anaconda3/lib/python3.5/site-packages/matplotlib/figure.py in draw(self, renderer)
1157 dsu.sort(key=itemgetter(0))
1158 for zorder, a, func, args in dsu:
-> 1159 func(*args)
1160
1161 renderer.close_group('figure')/home/ave/anaconda3/lib/python3.5/site-packages/matplotlib/artist.py in draw_wrapper(artist, renderer, _args, *_kwargs)
59 def draw_wrapper(artist, renderer, _args, *_kwargs):
60 before(artist, renderer)
---> 61 draw(artist, renderer, _args, *_kwargs)
62 after(artist, renderer)
63/home/ave/anaconda3/lib/python3.5/site-packages/matplotlib/axes/_base.py in draw(self, renderer, inframe)
2322
2323 for zorder, a in dsu:
-> 2324 a.draw(renderer)
2325
2326 renderer.close_group('axes')/home/ave/anaconda3/lib/python3.5/site-packages/matplotlib/artist.py in draw_wrapper(artist, renderer, _args, *_kwargs)
59 def draw_wrapper(artist, renderer, _args, *_kwargs):
60 before(artist, renderer)
---> 61 draw(artist, renderer, _args, *_kwargs)
62 after(artist, renderer)
63/home/ave/anaconda3/lib/python3.5/site-packages/matplotlib/axis.py in draw(self, renderer, _args, *_kwargs)
1109
1110 for tick in ticks_to_draw:
-> 1111 tick.draw(renderer)
1112
1113 # scale up the axis label box to also find the neighbors, not/home/ave/anaconda3/lib/python3.5/site-packages/matplotlib/artist.py in draw_wrapper(artist, renderer, _args, *_kwargs)
59 def draw_wrapper(artist, renderer, _args, *_kwargs):
60 before(artist, renderer)
---> 61 draw(artist, renderer, _args, *_kwargs)
62 after(artist, renderer)
63/home/ave/anaconda3/lib/python3.5/site-packages/matplotlib/axis.py in draw(self, renderer)
250
251 if self.label1On:
--> 252 self.label1.draw(renderer)
253 if self.label2On:
254 self.label2.draw(renderer)/home/ave/anaconda3/lib/python3.5/site-packages/matplotlib/artist.py in draw_wrapper(artist, renderer, _args, *_kwargs)
59 def draw_wrapper(artist, renderer, _args, *_kwargs):
60 before(artist, renderer)
---> 61 draw(artist, renderer, _args, *_kwargs)
62 after(artist, renderer)
63/home/ave/anaconda3/lib/python3.5/site-packages/matplotlib/text.py in draw(self, renderer)
794 textrenderer.draw_text(gc, x, y, clean_line,
795 textobj._fontproperties, angle,
--> 796 ismath=ismath, mtext=mtext)
797
798 gc.restore()/home/ave/anaconda3/lib/python3.5/contextlib.py in exit(self, type, value, traceback)
75 value = type()
76 try:
---> 77 self.gen.throw(type, value, traceback)
78 raise RuntimeError("generator didn't stop after throw()")
79 except StopIteration as exc:/home/ave/anaconda3/lib/python3.5/site-packages/matplotlib/text.py in _wrap_text(textobj)
58 textobj.set_text(old_text)
59 else:
---> 60 yield textobj
61
62/home/ave/anaconda3/lib/python3.5/site-packages/matplotlib/text.py in draw(self, renderer)
790 textrenderer.draw_tex(gc, x, y, clean_line,
791 textobj._fontproperties, angle,
--> 792 mtext=mtext)
793 else:
794 textrenderer.draw_text(gc, x, y, clean_line,/home/ave/anaconda3/lib/python3.5/site-packages/matplotlib/backends/backend_agg.py in draw_tex(self, gc, x, y, s, prop, angle, ismath, mtext)
251 texmanager = self.get_texmanager()
252
--> 253 Z = texmanager.get_grey(s, size, self.dpi)
254 Z = np.array(Z * 255.0, np.uint8)
255/home/ave/anaconda3/lib/python3.5/site-packages/matplotlib/texmanager.py in get_grey(self, tex, fontsize, dpi)
581
582 if alpha is None:
--> 583 pngfile = self.make_png(tex, fontsize, dpi)
584 X = read_png(os.path.join(self.texcache, pngfile))
585/home/ave/anaconda3/lib/python3.5/site-packages/matplotlib/texmanager.py in make_png(self, tex, fontsize, dpi)
522 'dvipng was not able to process the following '
523 'file:\n%s\nHere is the full report generated by '
--> 524 'dvipng: \n\n' % dvifile + report)
525 else:
526 mpl.verbose.report(report, 'debug')RuntimeError: dvipng was not able to process the following file:
/home/ave/.cache/matplotlib/tex.cache/c0175f5167fe83d1072385b1c5941a2d.dvi
Here is the full report generated by dvipng:
- Lingua principale
- Jupyter Notebook
- Stelle
- 170
- Fork
- 106
- Merge medio
- 21m
- PR unite (30g)
- 4
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di SheffieldML/notebook
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
SheffieldML/notebook#20 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
SheffieldML/notebook#19 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 20/100
SheffieldML/notebook#18 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
SheffieldML/notebook#17 · 6 commenti · 3 reazioni ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 15/100
SheffieldML/notebook#16 ·
Tutte le issue di SheffieldML/notebook
Issue simili
-
bin: stop can round 1 ulp below extent[1], so the maximum value is binned as +Infinity and droppedAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
I maintainer di solito rispondono entro 1 giorno
-
Numeric tick formatter gives repeated labels in scientific notation and with bounds: 'data'Forse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Analysis Functions bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
AllenInstitute/MIES#2856 ·
I maintainer di solito rispondono entro 1 giorno
-
javascript metrics priority: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
LearningCircuit/local-deep-research#8334 ·
I maintainer di solito rispondono entro 1 giorno
-
Flare Refactor
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
conrad-blucher-institute/Flare#209 ·
I maintainer di solito rispondono entro 3 giorni