paiqo / Databricks-VSCode

VSCode extension to work with Databricks
GNU General Public License v3.0
121 stars 27 forks source link

Unable to read notebooks with linebreaks via %run command #183

Open jianchen1628 opened 8 months ago

jianchen1628 commented 8 months ago

Hi, it seems that the current IDE lacks in handling linebreaks, i.e. if I run an underlying notebook within a cell using %run. image image image

However, this works absolutely fine, if I run the Notebook directly or via Databricks UI.

gbrueckl commented 8 months ago

just tried to reproduce this issue using online notebooks and the wsfs:/ scheme - are you using offline development using workspace sync or the online/live mode?

image in online/live mode its running just fine as you can see in the screenshot

you are using %run ../Include.ipynb which is a bit weird as you should not specify the extension .ipynb but only the notebook name itself

jianchen1628 commented 8 months ago

If the question was, whether I've downloaded the files from the workspace first and executed it locally using the cluster instances, then yes. And if I shouldn't run it that way, how would I execute it via online/live mode?

gbrueckl commented 8 months ago

please read here: https://github.com/paiqo/Databricks-VSCode?tab=readme-ov-file#execution-modes

I will try to repro your issue in offline-mode then