Many of us are not aware that we can run shell commands and install packages from the Jupyter notebook directly.

There is a very simple hack for this. We just have to add an exclamation mark before the command and write the command in the cell of Jupyter Notebook. You will get the output the next time.

For example, you want to list all the files and directories in the current directory, you know that command for this task will be ls so don’t wait to run this command in the Jupyter cell and you will get the output.

!ls

I hope, it is working for you. In case you face any issues, feel free to write in the comment section. I will be happy to help you.

Happy coding!!