oselivanov / matplotlib_iterm2 Goto Github PK
View Code? Open in Web Editor NEWExternal matplotlib backend uses iTerm2 inline image display feature.
License: MIT License
External matplotlib backend uses iTerm2 inline image display feature.
License: MIT License
After entering the recommended profile configuration snippet and installing matplotlib_iterm2 module, I get the following critical error on ipython start:
[TerminalIPythonApp] CRITICAL | Bad config encountered during initialization:
[TerminalIPythonApp] CRITICAL | The 'pylab' trait of a TerminalIPythonApp instance must be any of [u'auto', u'gtk', u'gtk3', u'inline', u'nbagg', u'notebook', u'osx', u'qt', u'qt4', u'qt5', u'tk', u'wx'] or None, but a value of u'iterm2' <type 'unicode'> was specified.
Very similar to the one noted as expected, but mpl simply exits.
Thanks for this awesome tool!
I'd like to send lines from a vim
session to a persistently running jupyter console
using jupyter-vim
, with matplotlib figures displayed inline using this package. However currently, figures are automatically displayed with the default PNG viewer on my operating system (ipython
does not do this), and I get the following error message when calling fig.show()
:
/var/folders/2w/9vg1nprs0xd54238xjtygl2r0000gp/T/ipykernel_17423/89474557.py:1: UserWarning: Matplotlib is currently using module://matplotlib_inline.backend_inline, which is a non-GUI backend, so cannot show the figure.
fig.show()
Is there any workaround for this?
Side note: I use os.environ.setdefault('MPLBACKEND', 'module://matplotlib_iterm2.backend_iterm2')
instead of c.TerminalIPythonApp.pylab = 'imgcat'
to avoid the error message. Switching to the latter has no effect on this issue.
Thank you for making such good project.
When I try to use iterm2 as the backend of my mac, after following the step by step which in README file, still raise such exception.
UsageError: Invalid GUI request 'iterm2', valid ones are: pyglet, osx, qt5, qt, glut, gtk, gtk3, tk, wx
iterm version : Build 2.9.20151006-nightly
ipython version: IPython 4.0.0
matpoltlib version: 1.4.3
I tried to solve such problem for weeks, but still don't work....
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.