Giter Club home page Giter Club logo

matplotlib_iterm2's Issues

Try to use iterm2 backend, but raise UsageError: Invalid GUI request 'iterm2'

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....

Weird behavior in jupyter console

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.

Critical error when setting iterm2 backend

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.

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.