Terminal Commands in Jupyter Notebook

I’m trying to do terminal commands in Jupyter Notebook but am having issues. When I try something like “!pwd” it says the command is “not recognized as an internal or external command,
operable program or batch file.” Am I missing some configuration I need to do with Jupyter Notebook to make this work? Looking online it seems this should just be an innate function of Jupyter Notebook.


I am guessing that you using Windows or not UNIX/Linux.

This command would not work.

Instead use:

!echo %cd%

Search the CMD equivalent of the Linux/Unix command. It works!



Yep, that was it! I was trying to use Linux/Unix commands in Windows. Thanks!

1 Like