Quarto: Difference between revisions

No edit summary
Reptee (talk | contribs)
Show how to solve Python not found when using reticulate in vscodium (probably vscode too, but I didn't verify that)
Line 100: Line 100:
+    export RETICULATE_PYTHON=$(which python3)
+    export RETICULATE_PYTHON=$(which python3)
+  '';
+  '';
</syntaxhighlight>When the issue appears in vscodium, one can fix it via wrapping `codium` binary:<syntaxhighlight lang="nix">
pkgs.vscodium.overrideAttrs (old: {
  installPhase = ''
    ${old.installPhase or ""}
    wrapProgram $out/bin/codium \
      --set RETICULATE_PYTHON ${pkgs.python3}/bin/python3
  '';
})
</syntaxhighlight>
</syntaxhighlight>