Skip to content

Tag: python

Animating two circles Python

I have a text file, with the coordinates of two circles on it. I want to produce a live animation of both particles. For some reason the following code crashes The text file that the data is taken from has the columns of X1, Y1, X2 and Y2 where X1 represents the x coordinate of the 1st particle etc. If

python in Rmarkdown using reticulate cannot read packages

I am using R on a MacBook. I have an Rmarkdown document and I’m trying to use reticulate in order to use python within R. First I download the libraries: Next I look at an R chunk and figure out my working directory. Then I write mtcars to my desktop. Then I try to use python instead to read in