2

I've been working on some Jupyter notebooks in VSCode. Jupyter isn't very git friendly, so when I want to commit my notebooks to Git, I have a filter that scrubs the output by using jupyter nbconvert --ClearOutputPreprocessor.enabled=True --to=notebook --stdin --stdout.

This works fine locally with git commits in VSCode in the source control view (⌃⇧G).

However when I connect to the same machine remotely via VSCode, I get errors that jupyter nbconvert --ClearOutputPreprocessor.enabled=True --to=notebook --stdin --stdout --log-level=ERROR: 1: jupyter: not found.
Jupyter is in my $PATH and works locally. It also works when I use the terminal window in a remote VSCode session. It only fails in the remote source control view. Any ideas?

pgcudahy
  • 1,542
  • 13
  • 36

1 Answers1

1

It depends on where you defined your PATH: .profile or .bashrc.

Ctrl + Shift + P and then type Open Settings (JSON), and simply add the following line.

"terminal.integrated.inheritEnv": true
LeGEC
  • 46,477
  • 5
  • 57
  • 104
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250