jupyterlab-topbar
jupyterlab-topbar copied to clipboard
No emojis on Windows10
Hi,
as promised, some Feedback on the behavior in Windows 10.
Installation works fine. If you don't have Jupyter on your system path, it helps to run the installation from the location where Jupyter is installed, for example "c:\Python37\scripts"
Alas, so far no emojis:
The default text shows as "Hi There 👋"
If you go into Settings / Top Bar Text / User Override, you can paste emojis like "🐍", but trying to save them throws
"Your changes were not saved. Invalid response: 500 Internal Server Error"
As a work around, trying to enter \xf0\x9f\x90\x8d will grey out the save button.
Showing normal text works fine.
Thanks for trying it out @mborus!
It looks like it's giving this error when trying to save the settings file to disk.
Do the server logs show any more details? Would you mind trying to use an emoji for the custom shortcuts as well? Something like this:
Do the server logs show any more details? I'm not sure where I should look for logs, do you know where they are located?
Would you mind trying to use an emoji for the custom shortcuts as well? Something like this: Same problem, can paste but not save. Again, Server error.
I'm not sure where I should look for logs, do you know where they are located?
In the terminal that starts the Jupyter server? (although it can be slightly different on Windows)
Below, the error message when saving a message with "🐍"
[E 22:13:33.833 LabApp] 500 PUT /lab/api/settings/@jupyterlab/shortcuts-extension:plugin?1551820411370 (::1) 2448.59ms referer=http://localhost:8891/lab
[E 00:37:04.398 LabApp] Uncaught exception PUT /lab/api/settings/jupyterlab-topbar-text:plugin?1551829024390 (::1)
HTTPServerRequest(protocol='http', host='localhost:8891', method='PUT', uri='/lab/api/settings/jupyterlab-topbar-text:plugin?1551829024390', version='HTTP/1.1', remote_ip='::1')
Traceback (most recent call last):
File "c:\python37\lib\site-packages\tornado\web.py", line 1541, in _execute
result = method(*self.path_args, **self.path_kwargs)
File "c:\python37\lib\site-packages\notebook\base\handlers.py", line 677, in wrapper
return method(self, args, **kwargs)
File "c:\python37\lib\site-packages\tornado\web.py", line 2949, in wrapper
return method(self, args, **kwargs)
File "c:\python37\lib\site-packages\jupyterlab_server\settings_handler.py", line 260, in put
fid.write(raw)
File "c:\python37\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f40d' in position 223: character maps to
@mborus if it's happening with other core JupyterLab extensions, it might related to how the json file is encoded and saved to disk on Windows.
Maybe someone has the similar problem. Worth checking on https://github.com/jupyterlab/jupyterlab or open a new issue.
Also came across this. At at least when opening I see the same thing "Hi There 👋". Don't suppose there has been any update on this re. this package or jupyterlab?