Skip to content

Conversation

@yrk1436
Copy link

@yrk1436 yrk1436 commented Sep 19, 2025

No description provided.

@gitnicos
Copy link

there is local file utils.py in notebooks. Hence every reference in notebooks:
from utils import format_messages
should be changed to
from notebooks.utils import format_messages

@gladwig2
Copy link
Collaborator

I think Jupyter sets your cwd to the notebook location when you open a notebook. It seems to find the utils.py without trouble. If I change it to notebook.utils, it fails..

@gitnicos
Copy link

oh, i see. good catch. I am using VSCode extension of running notebooks in place (not in Jupiter browser). Perhaps that's why i need to explicitly point to notebooks.utils since vscode Jupiter extension doesn't handle properly the priority sequence of utils module look up (local package->virtual env->global distro etc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants