# Recording mouse click coordinates in Jupyter

**URL:** <https://discourse.julialang.org/t/recording-mouse-click-coordinates-in-jupyter/40268>\
**Category:** New to Julia\
**Tags:** jupyter\
**Created:** [May 27, 2020, 3:51pm UTC](https://discourse.julialang.org/t/recording-mouse-click-coordinates-in-jupyter/40268 "2020-05-27T15:51:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dopamine](https://avatars.discourse-cdn.com/v4/letter/d/e9a140/32.png) [@dopamine](https://discourse.julialang.org/u/dopamine)\
**Post date:** [May 27, 2020, 3:51pm UTC](https://discourse.julialang.org/t/recording-mouse-click-coordinates-in-jupyter/40268/1 "2020-05-27T15:51:31Z")

</div>

How do I get mouse click locations in Jupyter? This is trivial in non-jupyter environment, but it seems like many plotting packages don’t support interactive mode in a Jupyter notebook.

PyPlot.jl: PyPlot.jl does not support interactive mode in Jupyter.  
Makie.jl + WebGL: seems like there’s a bug and the package is not functional.

---

<div class="post-metadata">

**Author:** ![davibarreira](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davibarreira/32/20270_2.png) [@davibarreira](https://discourse.julialang.org/u/davibarreira)\
**Post date:** [December 12, 2021, 7:53pm UTC](https://discourse.julialang.org/t/recording-mouse-click-coordinates-in-jupyter/40268/2 "2021-12-12T19:53:59Z")

</div>

Did you find out?

---

<div class="post-metadata">

**Author:** ![empet](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/empet/32/221303_2.png) [@empet](https://discourse.julialang.org/u/empet)\
**Post date:** [December 12, 2021, 9:45pm UTC](https://discourse.julialang.org/t/recording-mouse-click-coordinates-in-jupyter/40268/3 "2021-12-12T21:45:57Z")

</div>

As long as PyPlot.jl calls Matplotlib, via PyCall, it should work. Six years ago I coded within Jupyter Notebook (IPython Notebook at that time) with Python 2 and Matplotlib, the interactive generation of Bezier and B-spline curves: [Jupyter Notebook Viewer](https://nbviewer.org/github/empet/Geometric-Modeling/blob/master/FP-Bezier-Bspline.ipynb) (Class BuildB and associated methods). As I can remember the interactivity has been ensured by setting `%matplotlib nbagg`, and later `%matplotlib notebook`.
