Comments (6)
Hi @miguelsmuller , apologies for the late response.
Thank you for the additional information around your setup - I was able to reproduce this locally on VSCode, while the same env setup worked with Jupyter Classic Notebook and JupyterLab. The application-specific nature of the bug seems suggests that VSCode has additional requirements to get Jupyter widgets running in general.
I haven't been able to nail down a root cause as of yet, so scope of the changes needed remains ambiguous to me. Given the unclear dev time commitment required here, I think we have to consider VSCode support lower priority for now, but we will keep this in the backlog for investigation.
from graph-notebook.
Hi @miguelsmuller,
Can you describe the process you took install graph-notebook onto VS Code? Please provide additional details around your env (Python version and package versions used, at least for Jupyter core - run !jupyter --version
)
If possible, please also provide the VS Code Jupyter logs from running the %%sparql
cell. You can enable and grab the logs via these steps:
- In VS Code, open Settings, then go to Extensions -> Jupyter -> Logging
- Set the Logging level in the dropdown to "verbose", then restart VS Code
- Re-run the
%%sparql
query in the Jupyter Notebook - Pull the logs from the "Output" tab in the lower console
from graph-notebook.
This issue might be related: #515
Worth checking if a downgrade to jupyter_client<8
and pyzmq<25
fixes the issue.
from graph-notebook.
I will provide two comments. For the first one, I will share the environment setup I have here and the current screenshots:
Currently, I'm using a virtual environment (venv) with Python version 3.9.16. I set up the venv as follows:
~/.pyenv/versions/3.9.16/bin/python -m venv .venv
I have the following libraries installed:
pylama==8.4.1
pycodestyle==2.10.0
black==23.7.0
ipykernel==5.3.4
graph-notebook==3.8.2
jupyter==1.0.0
jupyter-client==7.1.2
jupyter-console==6.4.3
jupyter-contrib-core==0.3.3
jupyter-contrib-nbextensions==0.5.1
jupyter-core==4.9.2
jupyter-highlight-selected-word==0.2.0
jupyter-latex-envs==1.4.6
jupyter-nbextensions-configurator==0.4.1
jupyter-server==1.13.1
jupyterlab==3.2.8
jupyterlab-server==2.10.3
jupyterlab-widgets==1.1.0
rdflib==5.0.0
SPARQLWrapper==1.8.4
networkx==2.4
pandas==1.5.3
numpy<1.24.0
spacy==3.5.0
nltk==3.8.1
pydantic==1.10.7
pyarrow==12.0.1
seaborn==0.12.2
matplotlib==3.7.2
google-cloud-bigquery==3.11.3
fuzzywuzzy==0.18.0
python-Levenshtein==0.21.1
stringcase==1.2.0
python-stopwatch==1.0.5
VSCode Screenshot
Jupyter in Browser screenshot:
from graph-notebook.
@michaelnchin, As you requested, here's the log generated when I execute the SPARQL query in Visual Studio Code:
11:13:24.886 [info] Handle Execution of Cells 6 for {MY_FOLDER}/0001.ipynb
11:13:24.887 [debug] start the kernel, options.disableUI=false for {MY_FOLDER}/0001.ipynb
11:13:24.889 [debug] Execution Request Sent to Kernel for cell 6
11:13:24.902 [debug] Start cell 6 execution @ 1691763204899 (clear output)
11:13:24.902 [info] Kernel acknowledged execution of cell 6 @ 1691763204899
11:13:24.922 [debug] Widget Message: WidgetManager: Loading class LayoutModel:@jupyter-widgets/base:1.2.0
11:13:24.940 [debug] Widget Message: WidgetManager: Loading class TabModel:@jupyter-widgets/controls:1.5.0
11:13:24.942 [debug] Widget Message: WidgetManager: Loading class LayoutModel:@jupyter-widgets/base:1.2.0
11:13:24.946 [debug] Widget Message: WidgetManager: Loading class TabModel:@jupyter-widgets/controls:1.5.0
11:13:24.950 [debug] Widget Message: WidgetManager: Loading class OutputModel:@jupyter-widgets/output:1.0.0
11:13:24.957 [debug] Widget Message: WidgetManager: Loading class LayoutModel:@jupyter-widgets/base:1.2.0
11:13:24.963 [debug] Widget Message: WidgetManager: Loading class ForceModel:graph_notebook_widgets:3.8.2
11:13:24.967 [debug] Widget Message: WidgetManager: Loading class OutputModel:@jupyter-widgets/output:1.0.0
11:13:24.979 [debug] Widget Message: WidgetManager: Loading class OutputModel:@jupyter-widgets/output:1.0.0
11:13:24.984 [debug] Widget Message: Received display data message c08a61d1b64f40dba9a011caaf5ad593
11:13:24.999 [debug] Version of IPyWidgets 7 determined after 0s
11:13:25.012 [debug] Widget Message: Waiting for model to be available before rendering it c08a61d1b64f40dba9a011caaf5ad593
11:13:25.014 [error] Widget Error: Error: Failed to render widget c08a61d1b64f40dba9a011caaf5ad593, Error: widget model not found
11:13:25.018 [info] End cell 6 execution @ 1691763204950, started @ 1691763204899, elapsed time = 0.051s
11:13:25.018 [debug] Cell 6 executed with state Success
from graph-notebook.
No problem, @michaelnchin .
I appreciate the time you've taken to conduct this initial investigation.
If I can assist in any way, please let me know. I'd be happy to collaborate.
from graph-notebook.
Related Issues (20)
- [BUG] Copy of required script neptune_ml_utils.py fails on notebook 03-Real-Time-Fraud-Detection-Using-Inductive-Inference HOT 1
- [BUG] Seems like this is broken when used against latest tinkerpop HOT 2
- Provide dynamic coloring (or transparency) of relationships
- Add Vector Similarity Notebook
- [BUG] Graph tab missing | Only properties are displayed on Console and JSON tabs | JSON parseError without bolt
- Add Example Notebooks for SBOM Analysis
- Migrate to new Neptune Analytics API
- [BUG] TinkerPop tutorial commands not working in %%gremlin HOT 5
- Update `create-graph` CLI commands in sample notebooks
- Graph Notebook ECR Image or Sagemaker Base Image HOT 2
- Add Neptune Analytics magic for PropertyGraph info algorithm
- [BUG] Visualizer blocks certain property names for groups and labels HOT 1
- Add Pandas format to `--store-to`
- Add ability to download CSV query results
- [BUG] Cannot pass `None` in OC query parameters HOT 1
- [BUG] Error in 01-SBOM-Dependency-Analysis when installing nodestream-plugin-neptune HOT 1
- [BUG] Gremlin magic fails when results contain both list and vertex type HOT 1
- [BUG] Error with endpoint creation command in People Analytics Neptune ML notebook
- Add visible warnings for incompatible options in `%%opencypher`
- Display all possible parameters in default configuration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graph-notebook.