PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, December 21, 2022

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

 December 21, 2022     jupyter-notebook, syntax     No comments   

Issue

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


Solution

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.



Answered By - Martheen
Answer Checked By - Terry (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing