Test jupyter kernel completions in web
See original GitHub issueTesting the jupyter web extension providing completions when typing in a notebook.
Refs: #9977
Complexity: 3
Authors: @rchiodo
Requirements
- Install prerelease jupyter extension into http://insiders.vscode.dev
- Have a python environment that you can run jupyter from. (https://jupyter.org/install)
- install pandas into that environment as well
- Be familiar with jupyter notebooks
Pre test steps
- Go to a command prompt
- Activate the python environment with jupyter in it
- Run jupyter with the following command line :
jupyter notebook --no-browser --NotebookApp.allow_origin=*
- Note the URL it generates for connecting
- Start insiders.vscode.dev
- Make sure Jupyter prerelease extension is installed
- Bring up command palette
- Pick ‘Jupyter: Specify jupyter server for connections’
- Pick ‘Existing’
- Enter the URL from step 4
Test kernel completions
- Open a new notebook
- Pick the ‘Python 3’ kernel
- Add some code
- Run a cell
- Create a new cell with ‘import pandas as pd’
- On the next line, type ‘pd.’
- Verify that you get completions for pandas
- Try loading a CSV file in pandas (or create a dataframe with columns)
- 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:
- Created a year ago
- Comments:18 (10 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.Thanks for all the help here, appreciate it. I tested it and it works nicely.