Jupyter Notebook Cheat Sheet



Cheat

  1. Jupyter Notebook Tutorial
  2. Jupyter Notebook Markdown Cheat Sheet Pdf

Jupyter Notebook Keyboard Shortcuts by weidadeyue - Cheatography.com Created Date: 5718Z. Markdown for Jupyter notebooks cheatsheet. You can use Markdown to format documentation you add to Markdown cells in your Jupyter notebook. Here's how to format Markdown cells in Jupyter notebooks: Headings Use the number sign (#) followed by a blank space for notebook titles and section headings.

Installing Jupyter Notebook will automatically install the IPython kernel. Create new notebook Open an existing Make a copy of the notebook current notebook Rename notebook. Writing Code And Text. Save current notebook and record checkpoint. Revert notebook to a previous checkpoint. Preview of the printed notebook. Download notebook as. Wavepad. Executing Shell Commands. The notebook is the new shell. The shell is a way to interact textually. GITHUB FLAVORED MARKDOWN GitHub.com uses its own version of the Markdown syntax, GFM, that provides an additional set of useful features, many of which make it.

Jupyter notebook cheat sheet pdf

This document will be available to you during tests and exams

7.1. Table of Contents¶

7.2. Numeric¶

7.3. Basic plotting functions¶

7.4. Symbolic manipulation¶

7.4.1. Imports¶

Symbol definitions

Example controller and system

7.4.2. Working with rational functions and polynomials¶

We often want nice rational functions, but sympy doesn’t make expressions rational by default

$$frac{5 K_{c} left(s tau + 1right)}{s tau left(10 s + 1right)^{2}} + 1$$
Jupyter

The cancel function forces this to be a fraction. collect collects terms.

$$frac{5 K_{c} + 100 s^{3} tau + 20 s^{2} tau + s left(5 K_{c} tau + tauright)}{100 s^{3} tau + 20 s^{2} tau + s tau}$$

In some cases we can factor equations:

$$frac{5 K_{c} + 100 s^{3} tau + 20 s^{2} tau + s left(5 K_{c} tau + tauright)}{s tau left(10 s + 1right)^{2}}$$

Docker on ubuntu 20.04. Obtain the numerator and denominator:

$$left ( 5 K_{c} + 100 s^{3} tau + 20 s^{2} tau + s left(5 K_{c} tau + tauright), quad 100 s^{3} tau + 20 s^{2} tau + s tauright )$$

If you want them both, you can use

$$left ( 5 K_{c} + 100 s^{3} tau + 20 s^{2} tau + s left(5 K_{c} tau + tauright), quad 100 s^{3} tau + 20 s^{2} tau + s tauright )$$

Convert to polynomial in s

Once we have a polynomial, it is easy to obtain coefficients:

$$left [ 100 tau, quad 20 tau, quad 5 K_{c} tau + tau, quad 5 K_{c}right ]$$

Calculate the Routh Array

$$left[begin{matrix}100 tau & 5 K_{c} tau + tau20 tau & 5 K_{c}- 25 K_{c} + tau left(5 K_{c} + 1right) & 05 K_{c} & 0end{matrix}right]$$

To get a function which can be used numerically, use lambdify:

7.4.3. Functions useful for discrete systems¶

Write in terms of positive powers of (z):

Jupyter Notebook Tutorial

Write in terms of negative powers of (z):

Inversion of the (z) transform

$$left [ 0, quad 1, quad 1, quad 1, quad 1, quad 1, quad 1, quad 1, quad 1, quad 1right ]$$

7.5. Equation solving¶

7.5.1. Symbolic¶

$$left { x : - a, quad y : a + 2, quad z : -2right }$$

7.5.2. Numeric sympy¶

$$left[begin{matrix}-2.219107148913752.21910714891375end{matrix}right]$$

7.5.3. Numeric¶

7.6. Matrix math¶

7.6.1. Symbolic¶

Jupyter Notebook Markdown Cheat Sheet Pdf

Creation

$$left[begin{matrix}G_{11} & G_{12}G_{21} & G_{22}end{matrix}right]$$

Determinant, inverse, transpose

$$left ( G_{11} G_{22} - G_{12} G_{21}, quad left[begin{matrix}frac{G_{22}}{G_{11} G_{22} - G_{12} G_{21}} & - frac{G_{12}}{G_{11} G_{22} - G_{12} G_{21}}- frac{G_{21}}{G_{11} G_{22} - G_{12} G_{21}} & frac{G_{11}}{G_{11} G_{22} - G_{12} G_{21}}end{matrix}right], quad left[begin{matrix}G_{11} & G_{21}G_{12} & G_{22}end{matrix}right]right )$$

Math operations: Multiplication, addition, elementwise multiplication:

$$left ( left[begin{matrix}G_{11}^{2} + G_{12} G_{21} & G_{11} G_{12} + G_{12} G_{22}G_{11} G_{21} + G_{21} G_{22} & G_{12} G_{21} + G_{22}^{2}end{matrix}right], quad left[begin{matrix}2 G_{11} & 2 G_{12}2 G_{21} & 2 G_{22}end{matrix}right], quad left[begin{matrix}G_{11}^{2} & G_{12}^{2}G_{21}^{2} & G_{22}^{2}end{matrix}right]right )$$

7.6.2. Numeric¶

Creation

Determinant, inverse, transpose Mac os 10.11 dmg download.

Math operations: Multiplication, addition, elementwise multiplication:

Jupyter Notebook is a great tool for data analysis. And one of its greatest features is that you can easily combine runnable code with rich-text annotations. Markdown cells that contain such annotations support both HTML and Markdown syntax.

Personally I prefer # Header (markdown syntax) to <h1>Header</h1> (HTML syntax) in my notebook’s cells as the former looks more human. So I use markdown syntax more often and a concise cheat sheet for Jupyter Notebook markdown is what I was missing for a long time. Yes, I’m aware of such comprehensive cheat sheets like this and this, they are great but too verbal and it’s hard to print them on one page to have it easily accessible.

Eventually, I decided to gather all crucial points of the markdown syntax that are actual for Jupyter notebook and combine them in a concise cheat sheet that I present to you. It doesn’t explain much but should be useful if you simply forgot something. Click the picture to download the PDF version.

I didn’t get into the details of LaTeX syntax (see the penultimate cell in the cheat sheet with the square root of k) since it’s well described here (get ready, it’s a very long document) and you can even download a pretty good cheat sheet here.