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

Invalid Syntax: jupyter labextension install jupyterlab-drawio #46

Open
marcotchou opened this issue Sep 16, 2019 · 12 comments
Open

Invalid Syntax: jupyter labextension install jupyterlab-drawio #46

marcotchou opened this issue Sep 16, 2019 · 12 comments

Comments

@marcotchou
Copy link

Error

Hi,

I launch Jupyter.org/try and then invoke Jupyterlab, run "jupyter labextension install jupyterlab-drawio" then got Invalid Syntax.

@jasongrout
Copy link
Contributor

You should run that command from the command line, not in a python notebook cell.

Alternatively, you can install from the extension manager, which you can enable in the Settings menu.

@marcotchou
Copy link
Author

marcotchou commented Sep 16, 2019 via email

@jasongrout
Copy link
Contributor

Enable the extension manager, then open it in the sidebar, then search for jupyterlab-drawio and click "install"

@marcotchou
Copy link
Author

marcotchou commented Sep 16, 2019 via email

@jasongrout
Copy link
Contributor

I got a "Rebuild" message - see attached.

Sorry, GitHub apparently doesn't include the attachment, so I'm not seeing the error message. Can you post it on the issue directly?

@marcotchou
Copy link
Author

See attached.
Rebuild
Failed

@jasongrout
Copy link
Contributor

Not sure exactly what is causing that. You can also open a terminal and do a jupyter lab build

@marcotchou
Copy link
Author

I opened the terminal and do a "jupyter lab build" - it seems OK. See attached.
Build

I still got "Invalid Syntax" when I run "jupyter labextension install jupyterlab-drawio". Anymore tips?

@jasongrout
Copy link
Contributor

jupyter labextension install jupyterlab-drawio is invalid python syntax - it's not python, so it won't work in a python notebook cell. That is a command to run in a terminal, at the command line, not in a notebook cell.

But you don't need to run it anymore. What you've done with the extension manager is install the extension a different way.

Incidentally, I suppose you could take advantage of the python kernel's ability to run command-line programs by prepending with an exclamation point: !jupyter labextension install jupyterlab-drawio - that will run in ipython notebook cell because it's telling the ipython kernel to run it as a command line program, not as python.

@marcotchou
Copy link
Author

marcotchou commented Sep 17, 2019 via email

@jasongrout
Copy link
Contributor

Create a new drawing from the file menu or the launcher.

@marcotchou
Copy link
Author

marcotchou commented Sep 17, 2019 via email

bollwyvl added a commit to bollwyvl/jupyterlab-drawio that referenced this issue Jun 4, 2021
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