Jupyter 101 : Basic Operation
Feb. 22, 2021, 4:14 p.m.

Short Description :
Basic short cut list to operate jupyter notebook
source : datak

<p>JupyterLab is a web based interactive development environment for a jupyternotebook(.jpynb extension) that supports multiple languages, such as python, R, and Julia. It offers both script as a language as well as markdown in a notebook</p><p><br></p><h3>How to Setup Jupyter Lab in Local</h3><p>For jupyter in docker, please refer&nbsp;<a href="https://datak.biz/blog/detail/13/" target="_blank">the article</a>. For a local setup, use following commands in terminal;</p><pre># shell script cd &lt;jupyter directory&gt; #create virtual environment python3 -m virtualenv &lt;venv name&gt; #activate venv source &lt;venv name&gt;/bin/activate #install jupyter lab pip install jupyterlab #start jupyter lab jupyter lab</pre><p><br></p><h3>How to Setup Plotly : Interactive Visualization</h3><p>Plotly requires a bit unique installation settings for jupyterlab extensions</p><pre># shell script #activate venv source venv/bin/activate #install plotly pip install plotly #update jupyterlab pip install jupyterlab "ipywidgets&gt;=7.5" #install required jupyter extensions jupyter labextension install jupyterlab-plotly@4.14.3 #start jupyter lab jupyter lab</pre><p>See&nbsp;<a href="https://plotly.com/python/getting-started/" target="_blank">plotly help</a>&nbsp;for more information</p><p><br></p><h3>Shortcut List</h3><ol><li>Shift + Enter : Run / Execution</li><li>Enter : Change to Edit Mode</li><li>Esc : Change to View/Command Mode</li><li>Alt + Enter : Execute and Create new cell</li><li>Cmd + B : Hide / Unhide left pane</li></ol><p><br></p><h4>Shortcut Keys in Command Mode</h4><ol><li>Shift + Space / Space : in Command Mode, move up / down</li><li>Delete + Delete : Delete cell</li><li>M : Change to Markdown</li><li>Y : Change to Code</li><li>Shift + Drag then Shift + M : Merge Cells</li><li>Esc + Z : Undo</li><li>Esc + A : Forward</li><li>A : Insert new cell above</li><li>B : Insert new cell below</li></ol><p><br></p><h4>Shortcut Keys in Edit Mode</h4><ol><li>Shift + Tab : Reference Function (either at parenthesis in function or at/after the function)</li><li>Tab : Reference objects. For example,</li></ol><pre># jupyter lab x = 'string' x.&lt;then Tab&gt;</pre><p><br></p>


<< Back to Blog Posts
Back to Home

Related Posts

Jupytor in Docker
Feb 2 2021
How to deploy jupytor in docker container
Python Exploratory Data Analysis 1
Feb 22 2021
Exploratory Data Analysis using Jupyter Python
RDS Database Creation and Connection
Feb 25 2021
Database connection and basic operation for both python and R
Google Colab : File Loading
Mar 1 2021
Couple of ways to load files to google colab
Jupyter 101 : Basic Operation
Feb 22 2021
Basic short cut list to operate jupyter notebook



© DATAK 2024