question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Test jupyter kernel completions in web

See original GitHub issue

Testing the jupyter web extension providing completions when typing in a notebook.

Refs: #9977

Complexity: 3

Authors: @rchiodo

Create Issue


Requirements

Pre test steps

  1. Go to a command prompt
  2. Activate the python environment with jupyter in it
  3. Run jupyter with the following command line : jupyter notebook --no-browser --NotebookApp.allow_origin=*
  4. Note the URL it generates for connecting
  5. Start insiders.vscode.dev
  6. Make sure Jupyter prerelease extension is installed
  7. Bring up command palette
  8. Pick ‘Jupyter: Specify jupyter server for connections’
  9. Pick ‘Existing’
  10. Enter the URL from step 4

Test kernel completions

  1. Open a new notebook
  2. Pick the ‘Python 3’ kernel
  3. Add some code
  4. Run a cell
  5. Create a new cell with ‘import pandas as pd’
  6. On the next line, type ‘pd.’
  7. Verify that you get completions for pandas
  8. Try loading a CSV file in pandas (or create a dataframe with columns)
  9. Verify that you can get ‘column’ completions. For example, if you create a dataframe named df, typing df. should list the columsn of the dataframe.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:18 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
rchiodocommented, Jun 2, 2022

We finally figured it out. For some reason on Isidor’s machine, it needs this jupyter notebook --no-browser --NotebookApp.allow_origin='*'. Quotes around the * in the allow_origin.

0reactions
isidorncommented, Jun 2, 2022

Thanks for all the help here, appreciate it. I tested it and it works nicely.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Making kernels for Jupyter — jupyter_client 7.4.8 documentation
Making kernels for Jupyter . A 'kernel' is a program that runs and introspects the user's code. IPython includes a kernel for Python...
Read more >
How to enable Autocompletion in Jupyter Notebook application
This article demonstrates how to enable Python/Jupyter application coding autocompletion feature. The demo application uses content from ...
Read more >
How to enable auto-completion in Jupyter Notebook
You have auto-complete in Jupyter notebooks like you have in any other Jupyter environment. Simply hit the “Tab” key while writing code. This...
Read more >
Jupyter: Kernels, Protocols, and the IPython ... - YouTube
Matthias Bussonnier (UC Berkeley BIDS), Paul Ivanov (Bloomberg LP)Matthias Bussonnier and Paul Ivanov walk you through the current Jupyter ...
Read more >
Working with Jupyter Notebooks in Visual Studio Code
If you have an existing Jupyter Notebook, you can open it by right-clicking on the file and opening with VS Code, or through...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found