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.

How are cells numbered in messages?

See original GitHub issue

When I run nbqa on a notebook with flake8, mypy, or pylint, I see messages with the following structure

    <file_name>:cell_#:...

How is that cell number determined?

I have not been able to locate the indicated cells.

When using a tool like NbToolbelt (see PyPI), with the command nbtb dump, you get a listing of the notebook with all the cells numbered starting from 0 (the index in the JSON array of all cells). It is also not the number when assuming numbering starts at 1.

It also appears not to be the 0-based or 1-based number of just the code cells (the execution count).

Maybe I am overlooking the obvious. I did not find this explained in the documentation.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
MarcoGorellicommented, Jun 13, 2021

nice, thanks @s-weigand !

0reactions
MarcoGorellicommented, Jul 30, 2021

closed in e224feb

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cell Phone FAQs : Numbers & Letters in Text Messages
Number and letters in text messaging will sometimes require the use of a menu to be able to use them. Find the numbers...
Read more >
Enter text and numbers in Numbers on iPhone - Apple Support
In Numbers on iPhone, add text and numbers to table cells by typing, copying, and pasting.
Read more >
Fix text-formatted numbers by applying a number format
Click the cell, or press the arrow keys to move to the cell. Click the first cell in the range, and then drag...
Read more >
Can messages show as coming from my own cell phone ...
Messages will show as coming from the number that is found on your SimpleTexting Dashboard, rather than your personal cell number.
Read more >
iphone - One contact with several numbers - sent messages
When typing in a contact name while creating a new message in the Messages app, if the contact sheet for that person has...
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