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.

Opening a notebook for the first time shows Python core notifications that don't apply to notebooks

See original GitHub issue

Environment data

  • VS Code version: 1.48.0-insider
  • Extension version (available under the Extensions sidebar): v2020.8.101144
  • OS and version: macOS 10.15.6 (19G73)
  • Python version (& distribution if applicable, e.g. Anaconda): Python 2.7.17 64-bit
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): conda
  • Relevant/affected Python packages and their versions: N/A
  • Relevant/affected Python-related VS Code extensions and their versions: N/A
  • Value of the python.languageServer setting: Jedi

Expected behaviour

I get that I need to have some things appear for things to work, but we should do it in a graceful way.

Actual behaviour

Multiple notifications appear at the same time:

  1. Trusting notebook (can be deferred until you try to run a notebook)
  2. Survey (should be deferred until a later time)
  3. Conda env for integrated terminal (should be deferred until user opens terminal)
  4. Tip for python interpreter (can either be deferred until later or surfaced in the welcome page)

Steps to reproduce:

  1. Install Python extension for the first time (fresh user data directory)
  2. Open a .ipynb file
  3. 🐛 a large amount of notifications appear

image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
greazercommented, Aug 20, 2020

Thanks for the feedback! Few things. First, a user will not receive the survey on first opening of a notebook. Second, we must show the Trust popup. We can’t wait for the user to press Run because the user may just want to see the outputs. The third and fourth problems are in the core Python code. So I’m going to tag this for them to see.

1reaction
DavidKutucommented, Aug 19, 2020

Definitely agree on the survey. And the trust notebook is a good idea, I’ll make sure to go over it on the meeting.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Enable Jupyter Notebook Notifications
First, we'll look at how we can enable notifications in Jupyter Notebooks. Enter the following text in the first cell of the notebook:...
Read more >
Enabling notifications in your Jupyter notebooks for cell ...
In this article, we'll see how to enable notifications both in Jupyter Notebook as well as Jupyter Lab using notify. Notify: A Jupyter...
Read more >
Jupyter notebook does not launch · Issue #2130
After the conda installation, the Jupyter notebook does not start. There is a command window, which shows up for 1-2 seconds but disappears....
Read more >
Using IPython / Jupyter Notebooks Under Version Control
Open the notebook that you want to version control, and pair it to a Markdown file (or a Script) using the Jupytext Menu...
Read more >
Jupyter Notebook Enhancements, Tips And Tricks
This thread is dedicated to Jupyter Notebook enhancements and related goodies. Please contribute your tips and improvements that make our lives easier.
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