ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 15 Jan 2019 11:49:27 +0100sage 8.5 windows jupyter can't workhttps://ask.sagemath.org/question/45052/sage-85-windows-jupyter-cant-work/i use a windows laptop with Chinese. i download the windows installer, and install the sage 8.5 successfully. it can run sage(shell) correctly, but when i launch the jupyter, something wrong with it.
"sage -n" use the cmd to start a server, i got
File "/opt/sagemath-8.5/src/bin/sage-notebook", line 268, in
launcher(unknown)
File "/opt/sagemath-8.5/src/bin/sage-notebook", line 142, in init
super(SageNBExport, self).init(argv)
File "/opt/sagemath-8.5/src/bin/sage-notebook", line 100, in init
main(argv)
File "/opt/sagemath-8.5/local/lib/python2.7/site-packages/jupyter_core/application.py", line 266, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/opt/sagemath-8.5/local/lib/python2.7/site-packages/traitlets/config/application.py", line 657, in launch_instance
app.initialize(argv)
File "", line 2, in initialize
File "/opt/sagemath-8.5/local/lib/python2.7/site-packages/traitlets/config/application.py", line 89, in catch_config_error
app.print_help()
File "/opt/sagemath-8.5/local/lib/python2.7/site-packages/traitlets/config/application.py", line 385, in print_help
self.print_subcommands()
File "/opt/sagemath-8.5/local/lib/python2.7/site-packages/traitlets/config/application.py", line 377, in print_subcommands
print(os.linesep.join(lines))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe5 in position 4: ordinal not in range(128)
so i try some solutions, i can skip this step, but i got stuck in the jupyter launch step:
Could not decode '\xe6\x9c\xaa\xe5\x91\xbd\xe5\x90\x8d' for unicode trait 'untitled_notebook' of a LargeFileManager instance.
i know there is something wrong with the coding in python (and there are many problems when software operate with Chinese), but i can't find the right way to solve itlinuxCipherTue, 15 Jan 2019 11:49:27 +0100https://ask.sagemath.org/question/45052/Sage in Chinese?https://ask.sagemath.org/question/27245/sage-in-chinese/ Has anybody provided a language pack for Sage - or any of its components - in Chinese, either traditional or simplified? I can't find anything on the sagemath website; and certainly the French documents show Sage itself in English.
The reason is that a Chinese colleague and I are comparing at computer algebra use in China and Australia, and I can't find much about Chinese-language computer algebra systems.
Thanks!AlasdairThu, 02 Jul 2015 12:35:28 +0200https://ask.sagemath.org/question/27245/Why Sage can not plot Chinese labelhttps://ask.sagemath.org/question/9109/why-sage-can-not-plot-chinese-label/ I know that Matplotlib does not support UTF-8 without some change in matplotlibrc,So I edit the matplotlibrc and now when plot with matplotlib in sagenb,it supports UTF-8 now and it can show Chinese now.<br>
But for the sage plot function, when I want to set label with some Chinese characters,it raise exception :<br>
UnicodeEncodeError: 'ascii' codec can't encode character u'\u6211' in position 0: ordinal not in range(128).<br>
After I set the default encoding to UTF-8 in site.py,this exception does not raise again,but the Chinese characters are shown as box like [].
Below is my code:
p1=plot(sin,(-2*pi,2*pi),thickness=2.0,rgbcolor=(0.5,1,0),legend_label='sin(x)')
p2=plot(cos,(-2*pi,2*pi),thickness=3.0,color='purple',alpha=0.5,legend_label='cos(x)')
plt=p1+p2
x = u'\xd6\xd0\xb9\xfa\xc8\xcb'
plt.axes_labels((x,'y'))
show(plt)
Is there any solution?
I am sorry, it seems that this web site does not support Chinese, so I change the x shahuwangMon, 25 Jun 2012 04:53:57 +0200https://ask.sagemath.org/question/9109/