-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use relative files #101
Comments
where exactly would that if it is on DBFS, this will not work as your notebook is in the workspace and is not aware of the current path on DBFS what might be the case if you execute it as a Python job if it is on the workspace, it currently also will not work but I could check to see if this is possible just let me know what your exact scenario is |
Its currently under a repo workspace. So I have the git repo sync'd w/ databricks. And the structure of the folder is
where |
Non-code files like your Regarding your problem: does that same code work if you execute it via the Databricks Web UI? |
Yep, works in the databricks UI! We have that |
What library is that |
Yep! And some others, fwiw it should come w/ any python and just uses some regular default python packages https://docs.python.org/3/library/configparser.html#module-configparser Grabbed these from source code from collections.abc import MutableMapping
from collections import ChainMap as _ChainMap
import functools
import io
import itertools
import os
import re
import sys
import warnings |
I think I found a fix which will be implemented with the next release! |
the issue should be fixed in this release, can you please try it and report back - thanks! Note: it is not yet published to the VSCode gallery |
It still isnt working for me. I hover over I added "databricks.connection.default.exportFormats": {
...
"Ini": ".ini"
} but it didnt help |
Yes that does work! Thank you so much! The notebook can run and load those files. I did have to click |
it should also work if you run it via the Workspace browser (basically running the local file) can you test this again please as it worked in my tests |
Are you using the Databricks kernel?!? Or you r local one?
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Muhammad Sareini ***@***.***>
Sent: Friday, October 21, 2022 10:49:52 PM
To: paiqo/Databricks-VSCode ***@***.***>
Cc: Gerhard Brueckl ***@***.***>; Comment ***@***.***>
Subject: Re: [paiqo/Databricks-VSCode] Cannot use relative files (Issue #101)
[image]<https://user-images.githubusercontent.com/26151060/197286160-48d9df9a-9ebe-43e1-9892-f74fa2c0401e.png>
I opened the notebook via the workspace tab. I can see the ini file in the same directory, but it still cant read it. Unless I add it to the workspace
—
Reply to this email directly, view it on GitHub<#101 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AC2VO4UHOHFCEJ75VMER4O3WEL6XBANCNFSM6AAAAAARHFLWZI>.
You are receiving this because you commented.Message ID: ***@***.***>
|
I started a databricks cluster and specified that as the kernel |
ok, I think I found the issue |
just published v1.2.1 to the gallery! |
Downloaded the new version, double checked I have DBR 11+, and everything is working as expected! Thank you so much for the quick turnaround! |
In databricks, I use git syncing when developing. Inside a directory, I have a config file my job can read and use to load some runtime variables.
Ex:
When using the extension, this loads nothing and it cannot find the file at the same directory level
The text was updated successfully, but these errors were encountered: