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

Can't execute k3d widget notebook #13131

Closed
joyceerhl opened this issue Mar 21, 2023 · 9 comments
Closed

Can't execute k3d widget notebook #13131

joyceerhl opened this issue Mar 21, 2023 · 9 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug ipywidgets Rendering, loading, saving, anything to do with IPyWidgets user-setup Issues caused by incorrectly configured python environments, packages, or the like

Comments

@joyceerhl
Copy link
Contributor

joyceerhl commented Mar 21, 2023

Testing microsoft/vscode#177719

  1. Open https://github.com/microsoft/vscode-jupyter/blob/main/src/test/datascience/widgets/notebooks/k3d_widgets.ipynb
  2. Install k3d
  3. Run first cell
  4. 🐛 Cell never completes, no errors in output or dev tools

image

@DonJayamanne
Copy link
Contributor

Please could you enable logging as follows:

  • Open settings & go into Jupyter->Logging
  • Change the value to verbose
  • Reload VS Code,
  • Attempt to repro the issue & then copy the output from the Jupyter output panel.

@DonJayamanne DonJayamanne added the info-needed Issue requires more information from poster label Mar 21, 2023
@DonJayamanne DonJayamanne transferred this issue from microsoft/vscode Mar 21, 2023
@DonJayamanne
Copy link
Contributor

Works for me, please do share the verbose logs

@DonJayamanne DonJayamanne added ipywidgets Rendering, loading, saving, anything to do with IPyWidgets notebook-kernel-execution bug Issue identified by VS Code Team member as probable bug labels Mar 21, 2023
@DonJayamanne DonJayamanne removed their assignment Mar 21, 2023
@joyceerhl
Copy link
Contributor Author

Still repros for me, sent you logs on Slack @DonJayamanne

@DonJayamanne
Copy link
Contributor

DonJayamanne commented Mar 22, 2023

@joyceerhl

  • Can you try another version of Python, (try another kernel)
  • Can you also check if there are any errors in the console window (vscode dev tools)
  • Also please could you check whether this same notebook runs in the asme Python environment

Ensure you install python -m pip install jupyter notebook into the same python kernel environment and launch jupyter from there using python -m jupyter jupyter notebook and try it ouc.

@DonJayamanne
Copy link
Contributor

DonJayamanne commented Mar 22, 2023

Thanks, but that doesn't help, as I have no idea what that library does.
Please could you try #13131 (comment)

@joyceerhl
Copy link
Contributor Author

Tried with Python 3.10 from the Windows store, also didn't work.
No errors in dev tools or Jupyter console.
This notebook runs in the selected Python environment as confirmed with import sys; print(sys.executable)

@joyceerhl
Copy link
Contributor Author

joyceerhl commented Mar 24, 2023

Weirdly, if I run python3 -m pip install jupyter notebook from the CLI, I get a message saying that all packages are already installed, and if I rerun the k3d notebook, the cell still fails to complete. But if I run import sys; !{sys.executable} -m pip install jupyter notebook in a notebook cell, then the cell completes. So I think the k3d library and/or the ipywidgets library have not declared a dependency on the notebook submodule that is really required to execute that library's code. I don't think this is a Jupyter extension problem at all, probably something that needs fixing in k3d and/or ipywidgets.

@DonJayamanne
Copy link
Contributor

robably something that needs fixing in k3d and/or ipywidgets.

Great, thanks for digging into this, will close this issue.

FYI: Instead of using python3 -m pip install, you need to activate the python environment you are working on and then run

  • python -m pip install or
    Use this for virtual environments, conda envs and the like
  • <fully qualified path to Python> -m pip install, use the latter when dealing with globally installed python environments like Python in windows store or the like.

@DonJayamanne DonJayamanne added user-setup Issues caused by incorrectly configured python environments, packages, or the like and removed info-needed Issue requires more information from poster labels Mar 24, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug ipywidgets Rendering, loading, saving, anything to do with IPyWidgets user-setup Issues caused by incorrectly configured python environments, packages, or the like
Projects
None yet
Development

No branches or pull requests

4 participants