https://kedro.org/ logo
#questions
Title
# questions
b

Ben Horsburgh

01/31/2024, 5:03 PM
I've just been playing with
kedro>=0.19.0
- what is creating these two files when I run?
n

Nok Lam Chan

01/31/2024, 5:13 PM
I can't remember if it's the correct location of the file, @Sajid Alam do you know about this?
On the other hand, @Ben Horsburgh It's kedro-viz, since you probably select
all
when you run
kedro new
? By default it should be
None
This is because we assume if you select
kedro-viz
you want to have it turns on automatically. This files appear after your first run.
b

Ben Horsburgh

01/31/2024, 5:14 PM
Gotcha, are they refreshed on each run?
Also - might be good to have them in a
.viz
folder or similar?
๐Ÿ‘๐Ÿผ 1
๐Ÿ‘ 2
n

Nok Lam Chan

01/31/2024, 5:15 PM
session_store.db
is the same old experiment tracking feature, so it will keep all runs history.
stats.json
is something we added a few months ago in
kedro-viz
, it's refresh on each run. (the flowchart view of viz)
b

Ben Horsburgh

01/31/2024, 5:16 PM
Is there any convenient way to open and look at
session_store
.db in python?
n

Nok Lam Chan

01/31/2024, 5:17 PM
It's a sqlite database, so something like this should work. https://datacarpentry.org/python-ecology-lesson/instructor/09-working-with-sql.html
There isn't too much information, it's store the information that you see in the experiment tracking tab
My prefer option to peek at the db is this tool. https://github.com/simonw/datasette
b

Ben Horsburgh

01/31/2024, 5:19 PM
ta!
s

Sajid Alam

01/31/2024, 5:52 PM
We donโ€™t have any logic in our cookiecutter hooks to deal with these files so they are in their default location. As @Ben Horsburgh suggested might be nice to have them in a separate directory.
3 Views