base
is a default environment that gets install automaticallyconda create --prefix ./env pandas numpy jupyter matplotlib scikit-learn
conda activate <full path of folder A\env>
conda env list
To deactivate an active environment, use
conda deactivate
jupyter notebook
jupyter notebook
will be open in the browser at
http://localhost:8888/tree
Press on New button > select Notebook > Python 3
Untitled.ipynb
print("Hello world")
and press Shift Enter
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import sklearn
Shift Enter
and see the number near the In
was updated.Ctrl S
to Save.Ctrl C
conda deactivate
base
in the terminal.conda install jupyter
It will be installed in the env
folder.
conda env export --prefix .\env > environment.yml
conda env create --file environment.yml --name env_from_file
df = pd.read_csv("my_file")
df.head(30)
df['Approximate sales in millions'].value_counts().plot(kind="bar")
pip install notebook
jupyter notebook
http://localhost:8888/tree to see the http://localhost:8888/tree.
Press on New button > select Notebook > select Python 3
A Jupyter Notebook is a web-based "notebook" that can be used to run code and share results. It is a lightweight, browser-based application that can be used to create interactive visualizations and dashboards. It is a combination of a web browser and a programming environment.