From 45cff4fc77ba295a091b3da814486cbe70253e61 Mon Sep 17 00:00:00 2001 From: Igor Ilic Date: Wed, 8 Jan 2025 17:04:42 +0100 Subject: [PATCH 1/2] chore: Update python 3.9 gh action to use 3.12 instead --- .../workflows/{test_python_3_9.yml => test_python_3_12.yml} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename .github/workflows/{test_python_3_9.yml => test_python_3_12.yml} (96%) diff --git a/.github/workflows/test_python_3_9.yml b/.github/workflows/test_python_3_12.yml similarity index 96% rename from .github/workflows/test_python_3_9.yml rename to .github/workflows/test_python_3_12.yml index 21015e348..5a032144a 100644 --- a/.github/workflows/test_python_3_9.yml +++ b/.github/workflows/test_python_3_12.yml @@ -1,4 +1,4 @@ -name: test | python 3.9 +name: test | python 3.12 on: workflow_dispatch: @@ -31,7 +31,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v5 with: - python-version: '3.9.x' + python-version: '3.12.x' - name: Install Poetry # https://github.com/snok/install-poetry#running-on-windows From 11c6d65eaeafada2f5df81acbfc5af8598e2bcab Mon Sep 17 00:00:00 2001 From: Igor Ilic Date: Wed, 8 Jan 2025 17:06:21 +0100 Subject: [PATCH 2/2] chore: Update formatting of utils.py --- cognee/shared/utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cognee/shared/utils.py b/cognee/shared/utils.py index 1ea5e2249..f8f4f5705 100644 --- a/cognee/shared/utils.py +++ b/cognee/shared/utils.py @@ -365,6 +365,7 @@ def style_and_render_graph(p, G, layout_positions, node_attribute, node_colors, from bokeh.embed import file_html from bokeh.resources import CDN + graph_renderer = from_networkx(G, layout_positions) node_radii = [0.02 + 0.1 * centrality[node] for node in G.nodes()] graph_renderer.node_renderer.data_source.data["radius"] = node_radii @@ -404,6 +405,7 @@ async def create_cognee_style_network_with_logo( from bokeh.embed import file_html from bokeh.resources import CDN + logging.info("Converting graph to serializable format...") G = await convert_to_serializable_graph(G)