Skip to content

Instantly share code, notes, and snippets.

View nuhil's full-sized avatar
🎯
Focusing

Nuhil Mehdy nuhil

🎯
Focusing
View GitHub Profile
Nuhils-MacBook-Pro:~ nuhil$ conda info --envs
# conda environments:
#
myenv /Users/nuhil/miniconda3/envs/myenv
mypy2env /Users/nuhil/miniconda3/envs/mypy2env
root * /Users/nuhil/miniconda3
(myenv) Nuhils-MacBook-Pro:~ nuhil$ conda list
# packages in environment at /Users/nuhil/miniconda3/envs/myenv:
#
beautifulsoup4 4.6.0 py36_0
certifi 2016.2.28 py36_0
numpy 1.13.3 <pip>
openssl 1.0.2l 0
pip 9.0.1 py36_1
python 3.6.2 0
readline 6.2 2
(myenv) Nuhils-MacBook-Pro:~ nuhil$ conda list
# packages in environment at /Users/nuhil/miniconda3/envs/myenv:
#
certifi 2016.2.28 py36_0
openssl 1.0.2l 0
pip 9.0.1 py36_1
python 3.6.2 0
readline 6.2 2
setuptools 36.4.0 py36_1
sqlite 3.13.0 0
Nuhils-MacBook-Pro:~ nuhil$ source activate myenv
(myenv) Nuhils-MacBook-Pro:~ nuhil$ python
Python 3.6.2 |Continuum Analytics, Inc.| (default, Jul 20 2017, 13:14:59)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
Nuhils-MacBook-Pro:~ nuhil$ cd myenvironment/
Nuhils-MacBook-Pro:myenvironment nuhil$ ls -al
total 16
drwxr-xr-x 7 nuhil staff 238 Oct 5 03:50 .
drwxr-xr-x+ 53 nuhil staff 1802 Oct 5 04:31 ..
lrwxr-xr-x 1 nuhil staff 63 Oct 5 03:50 .Python -> /System/Library/Frameworks/Python.framework/Versions/2.7/Python
drwxr-xr-x 17 nuhil staff 578 Oct 5 04:05 bin
drwxr-xr-x 3 nuhil staff 102 Oct 5 03:50 include
drwxr-xr-x 3 nuhil staff 102 Oct 5 03:50 lib
Nuhils-MacBook-Pro:~ nuhil$ ls -al /usr/local/bin/ | grep python
lrwxr-xr-x 1 root wheel 69 Mar 10 2017 python3 -> ../../../Library/Frameworks/Python.framework/Versions/3.6/bin/python3
lrwxr-xr-x 1 root wheel 72 Mar 10 2017 python3-32 -> ../../../Library/Frameworks/Python.framework/Versions/3.6/bin/python3-32
lrwxr-xr-x 1 root wheel 76 Mar 10 2017 python3-config -> ../../../Library/Frameworks/Python.framework/Versions/3.6/bin/python3-config
lrwxr-xr-x 1 root wheel 71 Mar 10 2017 python3.6 -> ../../../Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6
lrwxr-xr-x 1 root wheel 74 Mar 10 2017 python3.6-32 -> ../../../Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6-32
lrwxr-xr-x 1 root wheel 78 Mar 10 2017 python3.6-config -> ../../../Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6-config
lrwxr-xr-x 1 root wheel 72 Mar 10 2017 python3.6m -> ../../../Library/Frameworks/Python.framewor
Nuhils-MacBook-Pro:~ nuhil$ virtualenv -p /usr/local/bin/python3.6 mynewenvironment
Running virtualenv with interpreter /usr/local/bin/python3.6
Using base prefix '/Library/Frameworks/Python.framework/Versions/3.6'
New python executable in /Users/nuhil/mynewenvironment/bin/python3.6
Also creating executable in /Users/nuhil/mynewenvironment/bin/python
Installing setuptools, pip, wheel...done.
Nuhils-MacBook-Pro:~ nuhil$ cd mynewenvironment/
Nuhils-MacBook-Pro:mynewenvironment nuhil$ source bin/activate
(mynewenvironment) Nuhils-MacBook-Pro:mynewenvironment nuhil$ python
Python 3.6.0 (v3.6.0:41df79263a11, Dec 22 2016, 17:23:13)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
(mynewenvironment) Nuhils-MacBook-Pro:mynewenvironment nuhil$ which python
/Users/nuhil/mynewenvironment/bin/python
(mynewenvironment) Nuhils-MacBook-Pro:mynewenvironment nuhil$ ls -al
total 16
drwxr-xr-x 7 nuhil staff 238 Oct 5 05:59 .
drwxr-xr-x+ 56 nuhil staff 1904 Oct 5 05:59 ..
lrwxr-xr-x 1 nuhil staff 56 Oct 5 05:59 .Python -> /Library/Frameworks/Python.framework/Versions/3.6/Python
drwxr-xr-x 16 nuhil staff 544 Oct 5 05:59 bin
drwxr-xr-x 3 nuhil staff 102 Oct 5 05:59 include
@nuhil
nuhil / jupyter_shortcuts.md
Created February 28, 2019 23:53 — forked from kidpixo/jupyter_shortcuts.md
Keyboard shortcuts for ipython notebook 3.1.0 / jupyter

Toc

Keyboard shortcuts

The IPython Notebook has two different keyboard input modes. Edit mode allows you to type code/text into a cell and is indicated by a green cell border. Command mode binds the keyboard to notebook level actions and is indicated by a grey cell border.

MacOS modifier keys:

  • ⌘ : Command