Difference between revisions of "Jupyter notebooks"

From Knowledge Kitchen
Jump to navigation Jump to search
(Created page with "Category: Database Design Category: Python Category: Data Science Jupyter Notebooks is a web-based publishing system that incorporates Python interpreters into a...")
 
m (Help)
 
Line 26: Line 26:
  
 
==Help==
 
==Help==
Start typing something followed by a question mark to get the docstring on that command
+
Code completion: if you position the cursor between parentheses of a function call, press Shift-Tab to see a list of arguments for that function.
pd.read_csv?
 
 
 
If you position the cursor between parentheses of a function call, press Shift-Tab to see a list of arguments for that function.
 
  
  
 
{{Template:Inbound links|page={{PAGENAMEE}}}}
 
{{Template:Inbound links|page={{PAGENAMEE}}}}

Latest revision as of 19:23, 11 July 2019


Jupyter Notebooks is a web-based publishing system that incorporates Python interpreters into a web page. It is extremely handy for sharing code including documentation for better collaboration with others.

  • write notes in Markdown syntax
  • write and execute code on the web
  • supports several programming languages

Included in the Anaconda Python package.

Tabs

  • 'Files' tab shows all files in a project.
    • Click New to start a new notebook, and select the language 'Python 3'
  • 'Running' tab shows any running processes.
  • 'Cluster' tab shows any networked clusters.

Modes

Two modes to enter either Markdown text or code are selectable via a drop-down list:

  • Markdown mode - allows you to type plain text in Markdown syntax (shortcut Esc-M)
  • Code mode - allows you to enter and execute code (shortcut Esc-Y)

In either mode, it is easy to publish to the web page

  • in Markdown mode, type Shift-Enter to show the text on the web page
  • in Code mode, type Shift-Enter to evaluate the code and print out any results

Help

Code completion: if you position the cursor between parentheses of a function call, press Shift-Tab to see a list of arguments for that function.


What links here