You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the official Databricks extension in vscode to sync my workspace folder to the repository folder in Databricks. Unfortunately, this extension doesnt respect this setting and assumes a wrong workspace path.
NotebookKernel: Setting up FilesInWorkspace support for file:///workspaces/databricks-template/notebooks/test.ipynb
POST 1.2/commands/execute --> {"clusterId":"xxxxxxxxxxxxxxx","language":"python","contextId":"83695628014xxxxxxx","command":"import os\nos.chdir('/Workspace/workspaces/databricks-template/notebooks')\nimport sys\nsys.path.append('/Workspace/workspaces/databricks-template/notebooks')"}
and later returns the following response because the files do not exist.
Response: {"id":"3fc6eb75-b7fe-4b72-825f-1c1987ff9dd4","status":"Finished","results":{"resultType":"error","summary":"<span class='ansi-red-fg'>FileNotFoundError</span>: [Errno 2] No such file or directory: '/W ...
<span class='ansi-red-fg'>FileNotFoundError</span>: [Errno 2] No such file or directory: '/Workspace/workspaces/databricks-template/notebooks'
�[0;31m---------------------------------------------------------------------------�[0m
�[0;31mFileNotFoundError�[0m Traceback (most recent call last)
File �[0;32m<command--1>:2�[0m
�[1;32m 1�[0m �[38;5;28;01mimport�[39;00m �[38;5;21;01mos�[39;00m
�[0;32m----> 2�[0m os�[38;5;241m.�[39mchdir(�[38;5;124m'�[39m�[38;5;124m/Workspace/workspaces/databricks-template/notebooks�[39m�[38;5;124m'�[39m)
�[1;32m 3�[0m �[38;5;28;01mimport�[39;00m �[38;5;21;01msys�[39;00m
�[1;32m 4�[0m sys�[38;5;241m.�[39mpath�[38;5;241m.�[39mappend(�[38;5;124m'�[39m�[38;5;124m/Workspace/workspaces/databricks-template/notebooks�[39m�[38;5;124m'�[39m)
�[0;31mFileNotFoundError�[0m: [Errno 2] No such file or directory: '/Workspace/workspaces/databricks-template/notebooks'
As a result, the execution path is obviously wrong.
Is there any way to specify the expected execution path or respect the sync location?
The text was updated successfully, but these errors were encountered:
I'm using the official Databricks extension in vscode to sync my workspace folder to the repository folder in Databricks. Unfortunately, this extension doesnt respect this setting and assumes a wrong workspace path.
and later returns the following response because the files do not exist.
As a result, the execution path is obviously wrong.
Is there any way to specify the expected execution path or respect the sync location?
The text was updated successfully, but these errors were encountered: