import pandas as pd
from IPython.display import Markdown, display
from tulip.core.collection import TulipCollection
from tulip.data.bloomberg import BloombergClient as bb
from tulip.data.haver import HaverClient as hc
from tulip.data.gs import GSClient as gs
from tulip.data.haver import (
get_series as get_series_from_haver,
get_collection as get_collection_from_haver,
)
from tulip.plots import plot_line, plot_lines, plot_area, plot_bar
from tulip.genai import iris
from tulip.analysis.country_related.analytics import summarize_gs_eco_fct
from tulip_mania.notebook_related import notebook_updated
import pycountry
leading_insight = iris.summarize(
mi_leading_growth,
"what trends do you see here? Could you also review the text of this page? https://melbourneinstitute.unimelb.edu.au/publications/macroeconomic-reports/latest-news/leading-index",
)
leading_insight.html()
# Bloomberg Nowcast
try:
ifs_nowcast = bb.get_series("BENWAUGC Index")
ifs_nowcast.plot(years_limit=2, tick_suffix="%")
except Exception as e:
display(Markdown(f"*Bloomberg nowcast not available for {ctry_name}*"))