9

I was trying to install the dark theme in Jupyter notebook by typing this in notebook

pip install jupyterthemes
jt -t chesterish

The first command worked but I got some error in the 2nd one. Then I wrote this

!jt -t chesterish

And it worked. What did the exclamation mark do?

P.S. I am extremely new to python, just started last week

Machavity
  • 30,841
  • 27
  • 92
  • 100
Dho
  • 93
  • 1
  • 1
  • 4
  • 2
    Does this answer your question? [What is the meaning of exclamation and question marks in Jupyter notebook?](https://stackoverflow.com/questions/53498226/what-is-the-meaning-of-exclamation-and-question-marks-in-jupyter-notebook) – Gino Mempin Apr 08 '20 at 09:26

1 Answers1

13

Any command prepended by exclamation point is run by your operating system shell instead of python. jt is actually a separate app called by your shell.

Martheen
  • 5,198
  • 4
  • 32
  • 55