Skip to content

Gaurav_210387 #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions Anaconda.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@

# <u> Anaconda </u>

# What is Anaconda?
Anaconda is an open source handy toolkit for dvelopers. It makes job easy for the developers by enabling them to create specific <u>Working Environments</u> and work in them.


## But What Is Working Environment?
Let's understand this with an easy example. Let's say you are designing a house. Every room has its Environment, and according to the nature of that Environment, we add different items to that room. For example, In Kitchen, we will install a sink and gas stove and additional shelves for utensils and vegetables; just like this, we will install different items in our bedroom and living room.
Now think of this as a developer. A developer is working on various projects simultaneously, and they'll need different packages for different projects. With the help of Anaconda, they can create different **Working Environments** with these different packages that they can access anytime. They'll not have to install these packages every time they switch from one project to another; instead, they switch from one Environment to the other, and they will easily have access to all these packages.
They can also modify these **Working Environments** by adding, removing, or updating any package anytime.

---

# Installing Anaconda.

* Search **Anaconda Install** in your Web Browser.
* Click on Anaconda Distribution link that appears.
* A download option appears on the right part of your screen. Click on download button and wait till it downloads.
* Click on the exectable file which is downloaded and follow simple steps that will follow on screen. Just make sure about the following:
+ While installing select Install for **Just Me** option.
+ Select **<u>Add Anaconda to my PATH environment variable</u>**.
+ Now wait till it installs and then we can work with Anaconda Prompt.
---
# Working in an Environment in Anaconda
## Creating an Environment
Open the Anaconda command prompt. You'll be direct to a base environment in Anaconda.
To setup a new Environment, type **"<u>conda create -- name NAME python version</u>"** (without inverted commas)
Here, NAME is the name of the environment you want to create and Python version will specify which version of pyhton you want to work with in this environment.
*for example:* ***<u>conda create --name basisoflearning python=3.9</u>*** will create an environment named 'basisoflearning' which will work with python 3.9
### <u>To enter the environment</u>,
type ***<u>conda activate basisoflearning</u>*** and you'll enter basisoflearning environment.
### <u>To install any package in the Environment</u>,
we will have to give different commands to download different packages in Anaconda which are easily available on the web.
*for example :* to install NumPy we can give command ***<u>conda instll -c anaconda numpy</u>***. this will install numpy i the environment.

### <u>To exit the environment</u>,
type ***<u>conda deactivate</u>*** and you'll head out of that environment.

---

## Other Important Commands Examples.


* ***<u>conda list</u>*** command fetches us list of all the packages installed in the environment.
* ***<u>conda update numpy</u>*** will update numpy library to its latest version.
* ***<u>conda env list</u>*** gives list of all the environments created on the system.
84 changes: 84 additions & 0 deletions Jupyter Notebook.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"cells": [
{
"cell_type": "markdown",
"id": "5e222e60",
"metadata": {},
"source": [
"# How to Install Jupyter Notebook?\n",
"* open command prompt.\n",
"* type **pip install jupyter** \n",
"This will install Jupyter in the system."
]
},
{
"cell_type": "markdown",
"id": "780f90dd",
"metadata": {},
"source": [
"# Creating a Notebook\n",
"In command prompt type **jupyter notebook**. This will open jupyter notebook in the browser. \n",
"# Creating a Notebook\n",
"* Click on the New button (upper right).\n",
"* It will open up a list of choices. Choose the version of python you want to create the notebook in.\n",
"* It will open a new Jupyter Notebook in the browser.\n"
]
},
{
"cell_type": "markdown",
"id": "c442f20a",
"metadata": {},
"source": [
"# Cells \n",
"cells in jupyter notebook are used to excute chuks of code by default but we can cahneg the celltype to markdown or raw NB converter according to our need. These cells will execute only the code written in them on clicking on Run button in the taskbar or pressing **Shift + Enter**. *for example:*"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "e8c00aa2",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Basis Of Learning\n"
]
}
],
"source": [
"print(\"Basis Of Learning\")"
]
},
{
"cell_type": "markdown",
"id": "a0683d7d",
"metadata": {},
"source": [
"These Cells get excuted in a specific sequence whic is usually mentioned in front of them. We can change the sequence in which they will be executed, Add as many ceels as required and Delete cells."
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.12"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Loading