Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does an exclamation mark (!) before a statement do?

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

like image 895
Dho Avatar asked Apr 08 '20 09:04

Dho


People also ask

What does (!) Mean in text?

An exclamation point is a form of punctuation that is used to add emphasis or express strong emotion (especially excitement). The role of the exclamation point does not change based on the given medium (it has the same effect in a book as it does in a text message).

What does an exclamation point mean after a sentence?

What Is an Exclamation Point For? Periods go at the end of declarative sentences, question marks go at the end of interrogative sentences, and exclamation points go at the end of exclamatory sentences. An exclamatory sentence is one that expresses a strong or forceful emotion, such as anger, surprise, or joy.

What is the uses of exclamation mark?

The exclamation point is usually used after an exclamation or interjection. It is intended to indicate strong feelings and convey emotion, as well as to indicate shouting or high volume. Like a period or question mark, an exclamation point typically comes at the end of a sentence.


1 Answers

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.

like image 59
Martheen Avatar answered Oct 03 '22 18:10

Martheen