Skip to content
New issue

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

Exception thrown when calling Jupyter function #43

Open
YahavFes opened this issue Jul 30, 2019 · 0 comments
Open

Exception thrown when calling Jupyter function #43

YahavFes opened this issue Jul 30, 2019 · 0 comments

Comments

@YahavFes
Copy link

Hi,
I am trying to get the cell index in javascript and then using it as a python variable.
I tried execute this line to capture the cell index:

%%node
var cell_index=Jupyter.notebook.get_selected_index()

But I got this message:

Thrown:

This line is working in jupyter (but the problem is that it's javacript variable and not python):

%%javascript
var cell_index=Jupyter.notebook.get_selected_index()

Do you have any solution for this problem?

@YahavFes YahavFes changed the title exception thrown when calling Jupyter function Exception thrown when calling Jupyter function Jul 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant