Anaconda Helping File

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 3

#zip files com python https://svaderia.github.

io/articles/downloading-and-
unzipping-a-zipfile/
#zip files handling com python https://thispointer.com/python-how-to-unzip-a-file-
extract-single-multiple-or-all-files-from-a-zip-archive/

#inicialização

conda create -n projeto-X python=3

#entrando no ambiente

conda activate projeto-X

#ver pacotes do ambiente

conda list

#instalar pacotes de visualização

conda install numpy pandas matplotlib seaborn

#interface de desenvolvimento

conda install jupyter notebook

#atualizar anaconda e pacotes

conda upgrade conda


conda upgrade --all

#instalar qualquer pacote

conda install package_name package_name2

#a versão pode ser definida

conda install package_name=1.10

#conda instala o pacote e as dependencias do pacote

#remover

conda remove package_name

#atualizar

conda update package_name

#procurar por trecho de nome

conda search '*package_name_part*'

#criar ambiente
#n significa nome
conda create -n env_name list of packages

#sair de ambiente

conda deactivate
#requisitos de ambiente em arquivo yaml

conda env export > environment.yaml

#criar ambiente usando ambiente exportado pra arquivo

conda env create -f environment.yaml

#mostrar ambientes criados, ambiente com * é o sendo acessado, ou o ambiente base

conda env list

#remover ambiente

conda env remove -n env_name

#usar espaços em nomes

/texto1 /texto2 /texto3.ipynp

#converter caderno jupyter para html

nbconvert --to html arquivo.ipynp

#aparece no mesmo diretório

#documentação

https://nbconvert.readthedocs.io/en/latest/usage.html

#converter caderno para slide

jupyter nbconvert notebook.ipynb --to slides

#converter e inicializar slide

jupyter nbconvert notebook.ipynb --to slides --post serve

#HOW TO SHOW YOUR CONDA ENVIROMNENTS IN JUPYTER

#INSTALL IN THE ROOT:

#conda install nb_conda

#install jupyter notebook in root and the enviromnent you want to show

#run jupyter notebook in the root folder

#jupyter notebook

#create presentation at jupyter (slide)

jupyter nbconvert presentation.ipynb --to slides

#install to run slides created using jupyter


https://github.com/hakimel/reveal.js#installation

make sure that your HTML slides point to the library correctly (using the --reveal-
prefix option), and then start a local http server (e.g., via python -m
http.server). Alternatively, you can add the --post serve option to your expression
to make use of a public, online version of reveal.js, start up a server, and
immediately open a tab in your web browser with the slide deck ready to navigate.

#basic slide run

jupyter nbconvert presentation.ipynb --to slides --template output-toggle.tpl


--post serve

You might also like