Skip to content

Instantly share code, notes, and snippets.

View andriimazur93's full-sized avatar
🎯
Focusing

Andrii Mazur andriimazur93

🎯
Focusing
View GitHub Profile
@andriimazur93
andriimazur93 / Jupyter Notebook with pipenv.txt
Created October 22, 2019 18:13
Running jupyter notebook with pipenv (Windows)
#Method 1
pipenv install ipykernel jupyter
pipenv shell
python -m ipykernel install --user --name=my-virtualenv-name
jupyter notebook
#Method 2
pipenv shell
@andriimazur93
andriimazur93 / modify_jupyter_notebook
Created October 22, 2019 17:44
Set Chrome as a default browser for Jupyter Notebook
# Generates config C:\Users\$USER_NAME$\.jupyter\jupyter_notebook_config.json
jupyter notebook --generate-config
# Uncomment this line and add a path to chrome.exe
c.NotebookApp.browser = u'C:/Home/AppData/Local/Google/Chrome/Application/chrome.exe %s'
@andriimazur93
andriimazur93 / pipenv_tutorial.py
Last active October 22, 2019 17:40
Work with pipenv
mkdir <folder_name>
cd <folder_name>
pipenv install <package_name> # Installs <package_name> into environment
pipenv lock -r requirements.txt # Freezes requirements
pipenv shell # Activates virtual environment
python # Starts interactive python