From 00b4119cd87b87c14ebc85bc16274c69280a9420 Mon Sep 17 00:00:00 2001 From: annonymous12 Date: Tue, 16 Sep 2025 21:34:53 +0200 Subject: [PATCH 1/3] Create root.py --- root.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 root.py diff --git a/root.py b/root.py new file mode 100644 index 0000000..7edb407 --- /dev/null +++ b/root.py @@ -0,0 +1,3 @@ +# Databricks notebook source +def greet_user(name: str) -> str: + return f"Hello, {name}! Welcome to Databricks 🚀" From c6d1f44f1bfee44a751b1e0d77e0524e8edd331b Mon Sep 17 00:00:00 2001 From: annonymous12 Date: Tue, 16 Sep 2025 21:35:18 +0200 Subject: [PATCH 2/3] Create root-use.py --- root-use.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 root-use.py diff --git a/root-use.py b/root-use.py new file mode 100644 index 0000000..6a5b1c8 --- /dev/null +++ b/root-use.py @@ -0,0 +1,7 @@ +# Databricks notebook source +# MAGIC %run ./utils_function + +# COMMAND ---------- +# Now we can call the function defined in utils_function +message = greet_user("Alice") +print(message) From a5fe00ccca7f6d8eebd4fcbf40c67d8c31362b26 Mon Sep 17 00:00:00 2001 From: annonymous12 Date: Tue, 16 Sep 2025 21:52:35 +0200 Subject: [PATCH 3/3] Update root-use.py --- root-use.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root-use.py b/root-use.py index 6a5b1c8..e576063 100644 --- a/root-use.py +++ b/root-use.py @@ -1,5 +1,5 @@ # Databricks notebook source -# MAGIC %run ./utils_function + # COMMAND ---------- # Now we can call the function defined in utils_function