njpipeorgan / wolfram-language-notebook

Notebook support for Wolfram Language in VS Code
Apache License 2.0
159 stars 11 forks source link

Extra `$DisplayFunction` block when plotting a user defined function #14

Closed lyyc199586 closed 2 years ago

lyyc199586 commented 2 years ago

Describe the bug When plotting a defined function, there is an extra $DisplayFunction[] around the desired figure.

Expected behavior Directly output the figure

Screenshots image

Environment (please complete the following information):

njpipeorgan commented 2 years ago

Thanks for the feedback.

I suspect that this problem is also related to the WSL environment. $DisplayFunction is normally Identity, but it may be undefined in your case (you can check this by directly evaluating $DisplayFunction). If that is true, $DisplayFunction=Identity; can be a solution for you. A related question

lyyc199586 commented 2 years ago

No I am using it directly from windows now, not WSL

njpipeorgan commented 2 years ago

I see. When this problem occurs, what is the value of $DisplayFunction?

lyyc199586 commented 2 years ago

add DisplayFunction->Identity can solve this problem