Interactivity of matplotlib plots is lost in RStudio

When I run this code

import matplotlib.pyplot as plt
import numpy as np
t = np.arange(0.0, 2.0, 0.01)
s = 1 + np.sin(2*np.pi*t)
plt.plot(t, s)

in a python environment (jupyter, for example) I obtain a plot with certain degree of interactivity. I can see the coordinates of the pointer, for example. This interactivity, however, is lost when I run the same code in a python chunk inside RStudio.

I wonder whether there is any way to recover the interactivity within RStudio.

ps. I have posted this question also to stackoverflow.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.