Skip to content

Commit

Permalink
tried to close parent
Browse files Browse the repository at this point in the history
  • Loading branch information
stla committed Jul 1, 2023
1 parent 47c47c9 commit 003d913
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions R/prettify_chromote.R
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,10 @@ editor.setCursor(0);

result <- session$Runtime$evaluate("editor.getValue();")
value <- result$result$value

on.exit(session$close())
. <- session$close()
# parentBrowser <- session$parent$get_browser()
# session$close()
# on.exit(parentBrowser$close())

value
}
8 changes: 4 additions & 4 deletions inst/essais/julia.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ function mandelbrot(a)
z = 0
for i=1:50
z = z^2 + a
end
return z
end
return z
end
for y=1.0:-0.05:-1.0
for x=-2.0:0.0315:0.5
abs(mandelbrot(complex(x, y))) < 2 ? print("*") : print(" ")
abs(mandelbrot(complex(x, y))) < 2 ? print("*") : print(" ")
end
println()
println()
end

0 comments on commit 003d913

Please sign in to comment.