Skip to content

Instantly share code, notes, and snippets.

View CatChenal's full-sized avatar

Cat Chenal CatChenal

View GitHub Profile

The easiest way I found to create an empty file in Windows 10 like touch in Linux:

>cd . > filename.ext
@CatChenal
CatChenal / code_in_cell0.md
Last active July 4, 2022 19:53
Code included in the first cell of a Jupyter notebook to allow multi-output

Code that I ususally include in the first cell of a jupyter nootebook:

from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"
  • This avoids using print() to obtain multiple outputs in one cell. For example, given this code in one cell:
a = 1
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active November 16, 2024 22:55
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux