knitron icon indicating copy to clipboard operation
knitron copied to clipboard

Bug in the knitron.is_running() function

Open lafaye opened this issue 7 years ago • 0 comments

Hi,

I suggest replacing in the knitron.is_running() function, the line

tail(res, 1) == "True"

with the two lines

substrRight <- function(x, n) substr(x, nchar(x)-n+1, nchar(x)) substrRight(res, 4) == "True"

because on my system, res contains: "\033]0;IPython: ddelseny/DataScienceBook\aTrue" and consequently the tail() function fails to retrieve "True"

Regards, Pierre L.

lafaye avatar Apr 19 '17 23:04 lafaye