WolframResearch / WolframLanguageForJupyter

Wolfram Language kernel for Jupyter notebooks
MIT License
1.05k stars 126 forks source link

Unable to use unicode string as variable name #126

Open arisliang opened 2 years ago

arisliang commented 2 years ago

I was trying to assign unicode such as chinese characters as variable name. It simply not displaying anything after hit enter. E.g. paste below code to the input and hit enter, the variable part is gone.

你好 = 1

In[1] := = 1

Wolfram Language 13.0.0 Engine for Microsoft Windows (64-bit)

cc-wr commented 2 years ago

I am sorry that you are having this issue. Does this problem occur when you use the built-in Wolfram Engine command line?

You might be able to avoid this issue by using Jupyter to interact with the Wolfram Engine, which will not use the Wolfram Engine's built-in command line. This project's README.md contains instructions for adding a Wolfram Language kernel to Jupyter.

I tried interacting with the Wolfram Engine using Jupyter's notebook mode (jupyter notebook) and console mode (jupyter console), and the Unicode variable name seemed to work.

Notebook mode:

notebook-mode

Console mode:

console-mode

arisliang commented 2 years ago

Yes, it happens to the wolfram command line.

image