Skip to content

Commit

Permalink
allow disabling; fail quietly.
Browse files Browse the repository at this point in the history
  • Loading branch information
t-kalinowski committed Nov 13, 2024
1 parent 3f81100 commit 9db7df4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,12 @@

setHook("reticulate.onPyInit", function() {

disable <- nzchar(Sys.getenv("_RETICULATE_POSITRON_DISABLE_VARIABLE_INSPECTORS_"))
if (disable)
return()

# options("ark.testing" = TRUE)
inspectors <- import_positron_ipykernel_inspectors()
inspectors <- tryCatch(import_positron_ipykernel_inspectors(), error = function(e) NULL)
if(is.null(inspectors)) {
# warning("positron_ipykernel.inspectors could not be found, variables pane support for Python objects will be limited")
return()
Expand Down

0 comments on commit 9db7df4

Please sign in to comment.