Skip to content

Instantly share code, notes, and snippets.

@alexlenail
Last active April 27, 2025 20:05
Show Gist options
  • Select an option

  • Save alexlenail/a91b08e241f112ee59ca890fc4a74b80 to your computer and use it in GitHub Desktop.

Select an option

Save alexlenail/a91b08e241f112ee59ca890fc4a74b80 to your computer and use it in GitHub Desktop.

Revisions

  1. alexlenail revised this gist Apr 27, 2025. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions default_notebook_first_cell.py
    Original file line number Diff line number Diff line change
    @@ -17,3 +17,5 @@
    pd.set_option('display.max_rows', 50)
    # pd.set_option('display.max_colwidth', None)

    import builtins
    print = lambda *args, **kwargs: builtins.print(*args, flush=True, **kwargs)
  2. alexlenail revised this gist Dec 13, 2022. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions default_notebook_first_cell.py
    Original file line number Diff line number Diff line change
    @@ -15,3 +15,5 @@
    %matplotlib inline

    pd.set_option('display.max_rows', 50)
    # pd.set_option('display.max_colwidth', None)

  3. alexlenail created this gist Nov 28, 2022.
    17 changes: 17 additions & 0 deletions default_notebook_first_cell.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    import numpy as np
    import pandas as pd

    import matplotlib
    import matplotlib.pyplot as plt

    plt.rcParams['figure.figsize'] = [8, 8]
    plt.rcParams['figure.dpi'] = 240
    plt.rcParams['svg.fonttype'] = 'none'
    plt.rcParams['pdf.use14corefonts'] = True


    from matplotlib_inline.backend_inline import set_matplotlib_formats
    set_matplotlib_formats('svg')
    %matplotlib inline

    pd.set_option('display.max_rows', 50)