Azure-Samples / Azure-Samples/azure-ai-document-processing-samples
Interactive Python Notebook not running in CodeSpace
- Dominant language
- Bicep
- Stars
- 125
- Forks
- 57
- PR merge metrics
- No merged PRs in 30d
Description
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
from notebook.extensions import BaseExtensionApp
ModuleNotFoundError: No module named 'notebook.extensions'
...
ModuleNotFoundError: No module named 'notebook.nbextensions'
```
Any suggestions?
Contributor guide
Assessment
This issue has not been assessed yet.