{"action":"created","issue":{"url":"https://api.github.com/repos/ioam/holoviews/issues/68","labels_url":"https://api.github.com/repos/ioam/holoviews/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/ioam/holoviews/issues/68/comments","events_url":"https://api.github.com/repos/ioam/holoviews/issues/68/events","html_url":"https://github.com/ioam/holoviews/issues/68","id":76067579,"number":68,"title":"Avoiding <matplotlib.figure.Figure at ......>","user":{"login":"basnijholt","id":6897215,"avatar_url":"https://avatars.githubusercontent.com/u/6897215?v=3","gravatar_id":"","url":"https://api.github.com/users/basnijholt","html_url":"https://github.com/basnijholt","followers_url":"https://api.github.com/users/basnijholt/followers","following_url":"https://api.github.com/users/basnijholt/following{/other_user}","gists_url":"https://api.github.com/users/basnijholt/gists{/gist_id}","starred_url":"https://api.github.com/users/basnijholt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basnijholt/subscriptions","organizations_url":"https://api.github.com/users/basnijholt/orgs","repos_url":"https://api.github.com/users/basnijholt/repos","events_url":"https://api.github.com/users/basnijholt/events{/privacy}","received_events_url":"https://api.github.com/users/basnijholt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-05-13T17:46:17Z","updated_at":"2015-05-13T20:41:18Z","closed_at":null,"body":"I'm working with IPython notebook on a server over ssh. In order to avoid the error:\r\n\r\n```python\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/holoviews/ipython/display_hooks.py\", line 203, in wrapped\r\n    **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/holoviews/ipython/display_hooks.py\", line 233, in element_display\r\n    **opts(element, get_plot_size(element, size)))()\r\n  File \"/usr/local/lib/python2.7/dist-packages/holoviews/plotting/raster.py\", line 34, in __init__\r\n    super(RasterPlot, self).__init__(*args, **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/holoviews/plotting/element.py\", line 132, in __init__\r\n    uniform=uniform, **dict(params, **plot_opts))\r\n  File \"/usr/local/lib/python2.7/dist-packages/holoviews/plotting/plot.py\", line 114, in __init__\r\n    self.handles['axis'] = self._init_axis(axis)\r\n  File \"/usr/local/lib/python2.7/dist-packages/holoviews/plotting/plot.py\", line 248, in _init_axis\r\n    fig = plt.figure()\r\n  File \"/usr/local/lib/python2.7/dist-packages/matplotlib/pyplot.py\", line 435, in figure\r\n    **kwargs)\r\n  File \"/usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_qt4agg.py\", line 47, in new_figure_manager\r\n    return new_figure_manager_given_figure(num, thisFig)\r\n  File \"/usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_qt4agg.py\", line 54, in new_figure_manager_given_figure\r\n    canvas = FigureCanvasQTAgg(figure)\r\n  File \"/usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_qt4agg.py\", line 72, in __init__\r\n    FigureCanvasQT.__init__(self, figure)\r\n  File \"/usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_qt4.py\", line 68, in __init__\r\n    _create_qApp()\r\n  File \"/usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_qt5.py\", line 138, in _create_qApp\r\n    raise RuntimeError('Invalid DISPLAY variable')\r\nRuntimeError: Invalid DISPLAY variable\r\n```\r\n\r\n\r\nOne must evaluate\r\n```python \r\n%matplotlib inline\r\n```\r\n\r\nThis always results in ```<matplotlib.figure.Figure at 0x7fb61b7849d0>``` being under a HoloMap\r\n![screen shot 2015-05-13 at 19 38 02](https://cloud.githubusercontent.com/assets/6897215/7616979/9ebb1c74-f9a8-11e4-874e-8652833c237c.png)\r\n\r\nOf course normally this won't be an issue, but I'm using a HoloMap in a IPython presentation that I'm preparing. Would you know a way to get rid of this?"},"comment":{"url":"https://api.github.com/repos/ioam/holoviews/issues/comments/101808232","html_url":"https://github.com/ioam/holoviews/issues/68#issuecomment-101808232","issue_url":"https://api.github.com/repos/ioam/holoviews/issues/68","id":101808232,"user":{"login":"philippjfr","id":1550771,"avatar_url":"https://avatars.githubusercontent.com/u/1550771?v=3","gravatar_id":"","url":"https://api.github.com/users/philippjfr","html_url":"https://github.com/philippjfr","followers_url":"https://api.github.com/users/philippjfr/followers","following_url":"https://api.github.com/users/philippjfr/following{/other_user}","gists_url":"https://api.github.com/users/philippjfr/gists{/gist_id}","starred_url":"https://api.github.com/users/philippjfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philippjfr/subscriptions","organizations_url":"https://api.github.com/users/philippjfr/orgs","repos_url":"https://api.github.com/users/philippjfr/repos","events_url":"https://api.github.com/users/philippjfr/events{/privacy}","received_events_url":"https://api.github.com/users/philippjfr/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T20:41:18Z","updated_at":"2015-05-13T20:41:18Z","body":"Sorry, I meant:\r\n\r\n```\r\nimport holoviews as hv\r\nimport numpy as np\r\nfrom matplotlib import pyplot as plt\r\nplt.switch_backend('agg')\r\n%load_ext holoviews.ipython\r\n%output holomap='widgets' widgets='live' backend='nbagg'\r\nhv.HoloMap({i: hv.Image(np.random.rand(25,25)) for i in range(10)})\r\n```"}}