# PyCall Holoviews output in Jupyter notebook

**URL:** https://discourse.julialang.org/t/pycall-holoviews-output-in-jupyter-notebook/85707
**Category:** Visualization
**Created:** [August 13, 2022, 3:06pm UTC](https://discourse.julialang.org/t/pycall-holoviews-output-in-jupyter-notebook/85707 "2022-08-13T15:06:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ea42gh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ea42gh/32/12000_2.png) [@ea42gh](https://discourse.julialang.org/u/ea42gh)
#### Post date: [August 13, 2022, 3:06pm UTC](https://discourse.julialang.org/t/pycall-holoviews-output-in-jupyter-notebook/85707/1 "2022-08-13T15:06:26Z")

</div>

Is it possible to get the pyviz stack working with PyCall in a Jupyter notebook?

```julia
using PyCall
hv = pyimport("holoviews")
hv.extension("bokeh" )
t=range(-1,1,10)
hv.Curve((t,t .^ 2))

```

currently yields `PyObject :Curve [x] (y)` rather than the figure I was hoping for.

---

<div class="post-metadata">

### Author: ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)
#### Post date: [August 13, 2022, 3:36pm UTC](https://discourse.julialang.org/t/pycall-holoviews-output-in-jupyter-notebook/85707/2 "2022-08-13T15:36:35Z")

</div>

Basically, you will need to call some `holoviews` function to get the figure in some notebook-supported format (e.g. PNG, SVG, …). Then you can call e.g. `display("image/png", ...png data...)`.

In PyPlot.jl, I automated this process by creating a `Figure` wrapper around Matplotlib figure objects which has `show` methods for the various Matplotlib-supported image types: [PyPlot.jl/PyPlot.jl at c4b0c566d1da3c08342b3f7d8d3aa14709c698bb · JuliaPy/PyPlot.jl · GitHub](https://github.com/JuliaPy/PyPlot.jl/blob/c4b0c566d1da3c08342b3f7d8d3aa14709c698bb/src/PyPlot.jl#L94-L105)
