Skip to content
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

Interactive Python Notebook not running in CodeSpace #63

Open
OzBob opened this issue Jan 28, 2025 · 2 comments
Open

Interactive Python Notebook not running in CodeSpace #63

OzBob opened this issue Jan 28, 2025 · 2 comments
Assignees

Comments

@OzBob
Copy link

OzBob commented Jan 28, 2025

Sincec the latest 'main' update, i've been able to progress further through the sample startup, I've not got a big subscription, so I have to delete the resource group, the KeyVault is set to 'softDelete', which is a problem ( i have to recover it manually and then delete it), I'd suggest setting : "enableSoftDelete: false"

Any way, once I did that, and attempted to run "samples/extraction/text-based/document-intelligence-openai.ipynb", when using GitHub Codespace to run the project, and then connect to the Python server, the missing instructions were:

  1. open new python terminal
  2. run: jupyter notebook
  3. do NOT use the 'codespace' option to connect to the juptyer server
  4. copy and paste the url from the terminal
  5. then run the first code blockError is: ModuleNotFoundError: No module named 'modules'

Which I tracked down to missing nbextension module, but attempting to install it:

pip install --upgrade notebook
pip install ipycanvas
pip install jupyter-contrib-nbextensions

All worked, but then:

jupyter nbextension install --py --sys-prefix ipycanvas

which fails with the following error:

jupyter contrib nbextension install --user
Traceback (most recent call last):
  File "/home/vscode/.local/lib/python3.12/site-packages/jupyter_contrib_core/notebook_compat/nbextensions.py", line 6, in <module>
    from notebook.extensions import BaseExtensionApp
ModuleNotFoundError: No module named 'notebook.extensions'
...
ModuleNotFoundError: No module named 'notebook.nbextensions'

Any suggestions?

@jamesmcroft
Copy link
Member

Hi @OzBob,

Let me investigate this issue further with Codespaces and the repository.

On Azure Key Vault, soft delete is a recommended best practice to prevent any accidental or malicious intent. It will also be flagged by Azure Policy if disabled. In the case of deletion, you should be able to restore your Key Vault from the portal UI

@jamesmcroft
Copy link
Member

@OzBob unfortunately, I am unable to reproduce the issue that you are experiencing in a clean GitHub codespaces environment.

Could you please confirm that you are running the samples using the Python 3.12.8 kernel?

@jamesmcroft jamesmcroft self-assigned this Feb 17, 2025
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

No branches or pull requests

2 participants