Lesson 14, Part 3: How to use various Jupyter Notebook commands¶

In [2]:
%pwd
Out[2]:
'c:\\Explore\\SAS\\Lesson14'
In [12]:
!python --version
Python 3.12.7
In [14]:
from platform import python_version
print(python_version())
3.12.7
In [16]:
import sys
print(sys.version)
3.12.7 | packaged by Anaconda, Inc. | (main, Oct  4 2024, 13:17:27) [MSC v.1929 64 bit (AMD64)]

To see all the installed packages, you can run the following command.

In [ ]:
!conda list

If you are on Windows, you need to start a program called Anaconda Prompt. If you see that command line has a (base) prepending it.

In [2]:
!jupyter --version
Selected Jupyter core packages...
IPython          : 8.27.0
ipykernel        : 6.28.0
ipywidgets       : 7.8.1
jupyter_client   : 8.6.0
jupyter_core     : 5.7.2
jupyter_server   : 2.14.1
jupyterlab       : 4.2.5
nbclient         : 0.8.0
nbconvert        : 7.16.4
nbformat         : 5.10.4
notebook         : 7.2.2
qtconsole        : 5.5.1
traitlets        : 5.14.3
In [ ]:
!conda list anaconda
In [ ]:
!conda info
In [ ]:
conda info --envs
In [ ]:
import sys
!{sys.executable} -m pip install pandas-profiling
In [ ]:
!pip install jupyterthemes
In [ ]:
!jt -l
In [ ]:
# selecting a particular theme
!jt -t chesterish
In [ ]:
# reverting to original Theme
!jt -r
In [ ]:
%load_ext autoreload