Random Astronomy Picture Example

42 views
Skip to first unread message

Tom Lou

unread,
Mar 22, 2020, 12:12:22 AM3/22/20
to Project Jupyter
I mean how do I change the code to make it compatible with Jupyter Lab 2.0? Thanks

Jason Grout

unread,
Mar 22, 2020, 12:57:46 AM3/22/20
to Project Jupyter
It should work in JupyterLab 2.0. Can you walk us through exactly what you are doing and where you are seeing an error, and what that error is?

Someone just opened an issue asking it was compatible: https://github.com/jupyterlab/jupyterlab_apod/issues/4. Was that you? If so, can we continue the conversation on the issue (or even better, an issue in the jupyterlab repo) so it is easier to find for others?

Thanks,

Jason


On Sat, Mar 21, 2020 at 9:12 PM Tom Lou <mari...@gmail.com> wrote:
I mean how do I change the code to make it compatible with Jupyter Lab 2.0? Thanks

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/8c3f1521-6587-4fa4-8899-8bd5b4d85ed3%40googlegroups.com.

Tom Lou

unread,
Mar 22, 2020, 1:56:33 AM3/22/20
to Project Jupyter
Thanks for your quick reply. Yes, I opened an issue in Github.
I used "jupyter labextension install jupyterlab_apod-2.0" to install this extension.
Then, Jupyterlab gives many errors in the backend terminal: 

      File "/Users/mariolzx/opt/anaconda3/envs/jupyterlab-ext/lib/python3.8/site-packages/jupyterlab/commands.py", line 541, in get_latest_compatible_package_versions
        return handler.latest_compatible_package_versions(names)
      File "/Users/mariolzx/opt/anaconda3/envs/jupyterlab-ext/lib/python3.8/site-packages/jupyterlab/commands.py", line 1659, in latest_compatible_package_versions
        for version, data in sorted(versions.items(),
    AttributeError: 'list' object has no attribute 'items'
[W 00:34:01.164 LabApp] Unhandled error
[E 00:34:01.164 LabApp] {
      "Host": "localhost:8889",
      "Connection": "keep-alive",
      "Authorization": "token 9036729e7e9169af148077e9013f87175c6a321bfdd7c2ed",
      "Sec-Fetch-Dest": "empty",
      "X-Xsrftoken": "2|c7bf5288|ad42adaaeaf06d907f6001d1362da6c1|1584587174",
      "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36",
      "Dnt": "1",
      "Content-Type": "application/json",
      "Accept": "*/*",
      "Sec-Fetch-Site": "same-origin",
      "Sec-Fetch-Mode": "cors",
      "Accept-Encoding": "gzip, deflate, br",
      "Accept-Language": "en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7",
      "Cookie": "_xsrf=2|c7bf5288|ad42adaaeaf06d907f6001d1362da6c1|1584587174; username-localhost-8888=\"2|1:0|10:1584670862|23:username-localhost-8888|44:YzM2M2YwMWEzNDIzNGExOGJkNmYzNDc4N2FlNjQxMWE=|94b8e91ab6b726d54eebae3e8a07699302286bec38506357e26c5c7268e29894\"; username-localhost-8889=\"2|1:0|10:1584851640|23:username-localhost-8889|44:N2RiMzgxODc3NDRkNGQ5NzliN2ZjOTg0NWVkOWQ5MGY=|ce448ab07f719f6df24d3924e946a8d6116c84f18ab5f79139e5c3af97613cd8\""
    }
[E 00:34:01.164 LabApp] 500 GET /lab/api/extensions?1584851641130 (::1) 27.97ms referer=http://localhost:8889/lab/wor


In chrome, when I click extension manager, it prompts "Error communicating with server extension. Consult the documentation for how to ensure that it is enabled. 
Reason given: Error: 500 (Internal Server Error)"

Do you know why? Thanks a lot!


On Sunday, March 22, 2020 at 12:57:46 AM UTC-4, Jason Grout wrote:
It should work in JupyterLab 2.0. Can you walk us through exactly what you are doing and where you are seeing an error, and what that error is?

Someone just opened an issue asking it was compatible: https://github.com/jupyterlab/jupyterlab_apod/issues/4. Was that you? If so, can we continue the conversation on the issue (or even better, an issue in the jupyterlab repo) so it is easier to find for others?

Thanks,

Jason


On Sat, Mar 21, 2020 at 9:12 PM Tom Lou <mari...@gmail.com> wrote:
I mean how do I change the code to make it compatible with Jupyter Lab 2.0? Thanks

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jup...@googlegroups.com.

Tom Luo

unread,
Mar 26, 2020, 2:42:20 AM3/26/20
to jup...@googlegroups.com
Hi, all,

I still don't know how to solve this problem. Could anyone offer any suggestions? Thanks a lot!

Best,

Tom



To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/fb74d2aa-19c0-493e-a0d9-b73e46cd1f79%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages