We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I would like to get the cell's index to python variable. I know I can do this in javascript using this command:
%%javascript var cell = Jupyter.notebook.get_selected_index()
But I need that the index will be stored in python variable.
Do you have any idea how can I solve this problem?
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
I searched for a while, and I could not find a solution. Workaround: at this to the first cell:
try: cell_counter += 1 except NameError: cell_counter = 0
add this to every next cell:
cell_counter += 1
No branches or pull requests
Hi,
I would like to get the cell's index to python variable.
I know I can do this in javascript using this command:
But I need that the index will be stored in python variable.
Do you have any idea how can I solve this problem?
The text was updated successfully, but these errors were encountered: