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

Magic command not working with xeus-python #303

Closed
pratikchhapolika opened this issue Jul 13, 2020 · 1 comment
Closed

Magic command not working with xeus-python #303

pratikchhapolika opened this issue Jul 13, 2020 · 1 comment

Comments

@pratikchhapolika
Copy link

I am trying to run magic commmands in jupyter lab which I recently installed with some debugger extension from this link:

https://github.com/jupyterlab/debugger

conda create -n jupyterlab-debugger -c conda-forge xeus-python=0.8.0 notebook=6 jupyterlab=2 ptvsd nodejs
conda activate jupyterlab-debugger

When I run this command:

import numpy as np
from numpy.random import randint

 #A function to simulate one million dice throws.
def one_million_dice():
   return randint(low=1, high=7, size=1000000)

%%time
throws = one_million_dice()
mean = np.mean(throws)
Error:

 ---------------------------------------------------------------------------
SyntaxError                               Traceback (most recent call last)
File C:\Users\chhapoli\Anaconda3\envs\jupyterlab-debugger\lib\ast.py, in parse:
Line 35:    return compile(source, filename, mode, PyCF_ONLY_AST)

SyntaxError: invalid syntax (<string>, line 1)

Question 1: How to see the complete traceback in Jupyter lab?
Question2: How to fix it?

@martinRenou
Copy link
Member

Thanks for reporting this! Please follow the discussion here for magics support: #63

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

2 participants