Skip to content

Commit

Permalink
Tidy notebook helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
ajparsons committed Aug 21, 2024
1 parent 9e55363 commit d130a38
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions src/data_common/notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
functions to speed up and pretify notebooks
"""

import builtins as __builtin__
import datetime
import os
import re
Expand All @@ -12,12 +11,6 @@
import pandas as pd
from IPython.core.display import Markdown as md

from .pandas.df_extensions import la

GovLayers = la.GovLayers

builtin_print = __builtin__.print

pd.options.mode.chained_assignment = None
pd.set_option("display.precision", 2)

Expand All @@ -39,13 +32,13 @@ def page_break():
)


while "notebooks" in Path.cwd().parts:
os.chdir("..")
while (Path.cwd() / "pyproject.toml").exists() is False:
os.chdir("..")
def set_top_level():
while (Path.cwd() / "pyproject.toml").exists() is False:
os.chdir("..")


def notebook_setup(): ...
def notebook_setup():
set_top_level()


def Date(x):
Expand Down

0 comments on commit d130a38

Please sign in to comment.