Join the Kedro community

M
M
M
D
M

Using runtime parameters with kedro ipython and jupyter

Hi fellows, probably a silly question but the runtime parameters can not be used with kedro ipython and jupyter because there is no run <i>per se</i>?

N
F
4 comments

Hi ,haven't seen you in a while. You are correct there isn't a "runtime" concept in a notebook.

kedro ipython call %reload_kedro by default, but it also takes argument. You can see that with ??%reload_kedro that it takes a --params argument that works in the same way.

I see! So, if in the catalog I have something like

data:
  type: pandas.SQLQueryDataset
  sql: ...
  load_args:
    params:
      start: ${runtime_params:start}
      end: ${runtime_params:end}
I put
%reload_kedro --params start="2020-01-01T00:00:00+00:00",end=2020-02-01T00:00:00+00:00
on top of the notebook, correct (it works, I am just checking that it's the right move)?

Yup, that should work

Add a reply
Sign up and join the conversation on Slack
Join