This repository has been archived by the owner on Aug 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 144
Issue in kubeflow fairing library while using in vscode #558
Labels
Comments
/kind bug |
/priority p2 |
@jinchihe @xauthulei |
Hi All,
After this, i am getting below error:
function does not return file name.
Output: Could you please check ? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
/kind bug
Hi All,
Getting issue while using fairing library from VSCode GUI.
Has fairing library been tested in VSCode notebook ?
Because when i checked the code, i got the below error:
kernel_id = re.search('kernel-(.*).json', ipykernel.connect.get_connection_file()).group(1)
**Output:
/opt/conda/lib/python3.8/site-packages/kubeflow/fairing/notebook/notebook_util.py in get_notebook_name()
10 def get_notebook_name(): #pylint:disable=inconsistent-return-statements
11 """Return the full path of the jupyter notebook. """
---> 12 kernel_id = re.search('kernel-(.*).json',
13 ipykernel.connect.get_connection_file()).group(1)
14 servers = list_running_servers()
AttributeError: 'NoneType' object has no attribute 'group'
After modifying the code as below, this is the output:
Output:
/tmp/tmp-3030pDALWEp8bRZ.json
The kernel name starts with "tmp- " in VSCode
But in jupyterlab , kernel name starts with "kernel-"
For example: kernel-5c890661-1206-4d97-abb7-b69c9d4610ed.json
How kubeflow-fairing can be used for vscode ?
The text was updated successfully, but these errors were encountered: