Monday, 28 November 2022

Jupyter Commands

 Install Jupyter Notebook

    pip install jupyterlab
    pip install notebook

 Open Jupyter Notebook    

    jupyter notebook   

Python command to generate the PY file from Jupyter    Notebook

jupyter nbconvert --to script Untitled1.ipynb

 Useful Python Commands

To update the PIP package,


C:\Users\ABC>python -m pip install --upgrade pip setuptools wheel


pip install camelcase
pip install pybrot
pip install numpy
pip install matplotlib

Installation on Windows

  • Here are the steps to install Python on Windows machine.

    Go to https://www.python.org/downloads/


  • Save the installer file to your local machine and then run it.

  • Accept the default settings, wait until the install is finished, and you are done.

 Setting up PATH

  • Open environment variable and add the below path in the system variables.


C:\Users\ABC\AppData\Local\Programs\Python\Python311\Scripts


  • After the successful configuration, run the below command to verify the installation is success or not.


python --version


C:\Users\ABC>python --version
Python 3.11.0


pip --version


C:\Users\ABC>pip --version
pip 22.3 from C:\Users\ABC\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip (python 3.11)

Python

Python is a very popular general-purpose interpreted, interactive, object-oriented, and high-level programming language.


  • Python is Open Source which means its available free of cost. 
  • Python is simple and so easy to learn 
  • Python is versatile and can be used to create many different things. 
  • Python has powerful development libraries include AI, ML etc.

DBT - Models

Models are where your developers spend most of their time within a dbt environment. Models are primarily written as a select statement and ...