Skip to content

Instantly share code, notes, and snippets.

View CatChenal's full-sized avatar

Cat Chenal CatChenal

View GitHub Profile
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active June 29, 2024 15:54
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
@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

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

>cd . > filename.ext