-
Notifications
You must be signed in to change notification settings - Fork 77
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
Comments
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. |
Hi Jason,
Thank you for your quick reply. I followed your instruction to enable the Extension Manager from the Setting in Jupyter.org/try. However, I still got "Invalid Syntax" when I run "jupyter labextension install jupyterlab-drawio" or "install jupyterlab-drawio".
So, will this work in the Jupyter.org/try? Please advise. Thanks.
Regards,
Marco
…________________________________
From: Jason Grout <[email protected]>
Sent: Monday, September 16, 2019 4:44 PM
To: QuantStack/jupyterlab-drawio
Cc: Chou, Marco; Author
Subject: [EXT] Re: [QuantStack/jupyterlab-drawio] Invalid Syntax: jupyter labextension install jupyterlab-drawio (#46)
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.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#46?email_source=notifications&email_token=ABQH2HX7H77JTCVXQSUVMA3QJ7425A5CNFSM4IXHQHNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD62TRSA#issuecomment-531970248>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABQH2HUY6ILN7XIGAPLRKWTQJ7425ANCNFSM4IXHQHNA>.
|
Enable the extension manager, then open it in the sidebar, then search for |
Hi Jason,
Thanks again. Making progress according to your instruction, but, after installation is done, I got a "Rebuild" message - see attached. So, I click "Rebuild", after about a half minute, I got an error message - see attached. It seems I am getting closer. What's missing?
Regards,
Marco
…________________________________
From: Jason Grout <[email protected]>
Sent: Monday, September 16, 2019 5:03 PM
To: QuantStack/jupyterlab-drawio
Cc: Chou, Marco; Author
Subject: [EXT] Re: [QuantStack/jupyterlab-drawio] Invalid Syntax: jupyter labextension install jupyterlab-drawio (#46)
Enable the extension manager, then open it in the sidebar, then search for jupyterlab-drawio and click "install"
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#46?email_source=notifications&email_token=ABQH2HU5GPEZPFZA63Z7UP3QJ77DLA5CNFSM4IXHQHNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD62U64Q#issuecomment-531976050>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABQH2HQHDFWNWUUNC4T3XHLQJ77DLANCNFSM4IXHQHNA>.
|
Sorry, GitHub apparently doesn't include the attachment, so I'm not seeing the error message. Can you post it on the issue directly? |
Not sure exactly what is causing that. You can also open a terminal and do a |
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: |
Hi Jason,
Thank you for the details. OK, I did the following steps in Jupyter.org/try
1. Enable Extension Manager from Settings.
2. Search and then install jupyterlab-drawio
3. Ignore the "Rebuild" popup message and open terminal to run "jupyter lab build" without any errors.
4. So, if the above steps complete the installation then my last question is how come from the Notebook I don't see "Untitiled.dio" showing in your video/blog? Or How to launch draw.io?
Regards,
Marco
…________________________________
From: Jason Grout <[email protected]>
Sent: Monday, September 16, 2019 6:05 PM
To: QuantStack/jupyterlab-drawio
Cc: Chou, Marco; Author
Subject: [EXT] Re: [QuantStack/jupyterlab-drawio] Invalid Syntax: jupyter labextension install jupyterlab-drawio (#46)
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.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#46?email_source=notifications&email_token=ABQH2HRQJL5U7YQJ7LM22T3QKAGKZA5CNFSM4IXHQHNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD62YXCQ#issuecomment-531991434>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABQH2HXZPLCHY457YKXKACTQKAGKZANCNFSM4IXHQHNA>.
|
Create a new drawing from the file menu or the launcher. |
Thank you so much! It's working!
Regards,
Marco
…________________________________
From: Jason Grout <[email protected]>
Sent: Monday, September 16, 2019 7:44 PM
To: QuantStack/jupyterlab-drawio
Cc: Chou, Marco; Author
Subject: [EXT] Re: [QuantStack/jupyterlab-drawio] Invalid Syntax: jupyter labextension install jupyterlab-drawio (#46)
Create a new drawing from the file menu or the launcher.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#46?email_source=notifications&email_token=ABQH2HT3QKISYSFI6QYX273QKASAFA5CNFSM4IXHQHNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD625VKI#issuecomment-532011689>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ABQH2HWXJO7D6EFJ7VRFUKTQKASAFANCNFSM4IXHQHNA>.
|
Hi,
I launch Jupyter.org/try and then invoke Jupyterlab, run "jupyter labextension install jupyterlab-drawio" then got Invalid Syntax.
The text was updated successfully, but these errors were encountered: