njpipeorgan / wolfram-language-notebook Goto Github PK
View Code? Open in Web Editor NEWNotebook support for Wolfram Language in VS Code
License: Apache License 2.0
Notebook support for Wolfram Language in VS Code
License: Apache License 2.0
Is your feature request related to a problem?
Sometimes ??
can give much more information for symbols. For example, ??Precedence
will give
Precedence[sym]
returns the precedence of the output operator associated to the symbol sym.
Precedence[boxes, fmt]
returns the precedence of the operator of used in the typeset expression boxes, assuming it was typeset in the format fmt.
??Precedence // OutputForm
function taken from https://mathematica.stackexchange.com/a/819/68689
Describe the solution you'd like
Add an Option to read from ??
when hover on function.
Additional context
But the var type may be very long.
Unprotect[PlotRange];
ClearAttributes[PlotRange, ReadProtected];
??PlotRange // OutputForm
PlotRange is an option for graphics functions that specifies what range of coordinates to include in a plot.
PlotRange[GraphicsArray[System`Dump`x_, System`Dump`opts___]] := With[{System`Dump`res = Graphics[GraphicsArray[System`Dump`x, System`Dump`opts]]}, PlotRange[System`Dump`res] /; System`Dump`GRTest[System`Dump`res]]
PlotRange[Internal`RasterGraphics[System`Dump`x_, System`Dump`opts___]] := With[{System`Dump`res = DensityGraphics[Internal`RasterGraphics[System`Dump`x, System`Dump`opts]]}, PlotRange[System`Dump`res] /; System`Dump`DGTest[System`Dump`res]]
and execute may also be slower than current method.
More deeply, is it possible to auto-complete those functions?
Describe the bug
Can't connect to the kernel:
Error message: "The kernel has stopped due to the following error: The first packet is not a InputNamePacket; packet=$Failed
Expected behavior
No error message.
Environment (please complete the following information):
Additional context
I was able to run the kernel right after installation, but after then I was not able to re-launch it.
Here is the output log
[Sun, 31 Jul 2022 08:07:53 GMT] kernelIsRemote = false, kernelPort = 53736
[Sun, 31 Jul 2022 08:07:53 GMT] kernelInitPath = c:\Users\Adithya.vscode\extensions\njpipeorgan.wolfram-language-notebook-0.1.0\resources\init-compressed.txt
[Sun, 31 Jul 2022 08:07:53 GMT] kernelRenderInitPath = c:\Users\Adithya.vscode\extensions\njpipeorgan.wolfram-language-notebook-0.1.0\resources\render-html.wl
[Sun, 31 Jul 2022 08:07:53 GMT] launchCommand = E:\wolframlanguage\wolframscript
[Sun, 31 Jul 2022 08:07:53 GMT] launchArguments = -code,ToExpression["zmqPort=53736;"<>Uncompress["1:eJy9PA1X27iy96e4gsMBrkJJ+7bvHSB54fOWu0ApSXfvWdcLJhHEi2OnttNCQ/afvf/2ZvRhS7IdUtpddimJJY1Go9F8yy+u44vu/7n/+MfqurO1de737/xbtrXlrK993Gy+wl/e0GX9LIijvGF1/
[Sun, 31 Jul 2022 08:08:04 GMT] Received the following data from kernel:
[Sun, 31 Jul 2022 08:08:04 GMT]
[Sun, 31 Jul 2022 08:08:16 GMT] Received the following data from kernel:
[Sun, 31 Jul 2022 08:08:16 GMT] $CommandLine={E:/wolframlanguage/wolfram.exe, -runfirst, Unprotect[$EvaluationEnvironment];$EvaluationEnvironment="Script";Protect[$EvaluationEnvironment];, -linkmode, Connect, -linkname, tn3hm_shm, -mathlink}
[Sun, 31 Jul 2022 08:08:16 GMT] Received the following data from kernel:
[Sun, 31 Jul 2022 08:08:16 GMT] $ScriptCommandLine={E:\wolframlanguage\wolframscript, -code, ToExpression["zmqPort=53736;"<>Uncompress["1:eJy9PA1X27iy96e4gsMBrkJJ+7bvHSB54fOWu0ApSXfvWdcLJhHEi2OnttNCQ/afvf/2ZvRhS7IdUtpddimJJY1Go9F8yy+u44vu/7n/+MfqurO1d
[Sun, 31 Jul 2022 08:08:16 GMT] Received the following data from kernel:
[Sun, 31 Jul 2022 08:08:16 GMT] Using the following command to launch the subkernel process:
[Sun, 31 Jul 2022 08:08:16 GMT] Received the following data from kernel:
[Sun, 31 Jul 2022 08:08:16 GMT] E:/wolframlanguage/wolfram.exe -noicon -wstp -linkprotocol SharedMemory -linkmode connect -linkname 2qgui889vypbyjt9
[Sun, 31 Jul 2022 08:08:35 GMT] Received the following data from kernel:
[Sun, 31 Jul 2022 08:08:35 GMT]
LinkObject::linkd: Unable to communicate with closed link LinkObject[2qgui889vypbyjt9, 197, 2].
[Sun, 31 Jul 2022 08:08:35 GMT] Killing kernel process, pid = 15664
[Sun, 31 Jul 2022 08:08:35 GMT] Process exited with code 0 and signal null.
This is indeed brilliant work!
Just curious about if there's any plan to add the feature for importing the standard Mathematica notebook (i.e. .nb
files) into the vs code environment.
I think that would be a big step to enhance WL adoption.
If I write something like this:
sol: Integrate[1/(1+x^3),x]
TeXForm(sol)
the math expression is correctly rendered. It would be nice to be able to right-click on it and copy the latex plain text.
Is your feature request related to a problem?
A clear and concise description of what the problem is.
No.
Describe the solution you'd like
A clear and concise description of what you want to happen.
In Notebook, if this is false, the user can get
Sin
from just typing sin
So could there be an option to turn on this behavior?
The default behavior won't change.
Additional context
Add any other context or screenshots about the feature request here.
Is your feature request related to a problem?
A clear and concise description of what the problem is.
Now 3d plot is static. Make them interactive.
Describe the solution you'd like
A clear and concise description of what you want to happen.
https://github.com/wuyudi/Mathematica-ThreeJS-graphics-engine/tree/enable-plot3d
Plot3D[Sin[x^2+y^2], {x,0,4},{y,0,4}]
%//ExportString[#//N, "ExpressionJSON"]& // Export["~/test.txt", #]&
now it works well
Additional context
Add any other context or screenshots about the feature request here.
Some pitfalls:
Because that repo is legacy, three js's version is old, hard to add new functions.
For example:
https://stackoverflow.com/a/51591365
https://discourse.threejs.org/t/three-geometry-will-be-removed-from-core-with-r125/22401
Is your feature request related to a problem?
Add a save/export figure feature like the jupyter notebook extension does.
Is your feature request related to a problem?
Currently, it will only go to the online manual, which is slow. If local has manual, prefer local will be much faster.
Describe the solution you'd like
Suppose the help docs are under the ~/path/to/docs/
, if we want to find something like Function
for *nix user.
find ~/path/to/docs/ -name Function.nb -exec wolframplayer {} +
the wolframplayer is distributed with the free Wolfram engine.
will do the trick. But I am not sure it could execute in vscode.
the variable pathToDocs
could be set in the setting.
Additional context
Add any other context or screenshots about the feature request here.
On the deb version of VS code, the kernel cannot run because the "command" is not found, although it is in the .json file.
Version: 1.67.2
Commit: c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5
Date: 2022-05-17T18:23:40.286Z
Electron: 17.4.1
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: 9.8.177.13-electron.0
OS: Linux x64 5.13.0-44-generic
settings.json
{
"editor.bracketPairColorization.enabled": true,
"editor.guides.bracketPairs":"active",
"jupyter.alwaysTrustNotebooks": true,
"python.languageServer": "Pylance",
"jupyter.askForKernelRestart": false,
"explorer.confirmDelete": false,
"files.trimTrailingWhitespace": true,
"jupyter.interactiveWindowMode": "perFile",
"explorer.confirmDragAndDrop": false,
"workbench.editorAssociations": {
"*.out": "hexEditor.hexedit",
"*.ipynb": "jupyter-notebook"
},
// "jupyter.maxOutputSize": 1200,
"diffEditor.codeLens": true,
"C_Cpp.updateChannel": "Insiders",
"r.rterm.linux": "/home/userme/.local/bin/radian",
"r.bracketedPaste": true,
"r.lsp.debug": true,
"notebook.cellToolbarLocation": {
"default": "right",
"jupyter-notebook": "left"
},
"window.zoomLevel": -1,
"explorer.sortOrder": "type",
"debug.javascript.autoAttachFilter": "always",
"wolframLanguageNotebook.kernel.configurations": {
"wolframscript": {
"type": "local",
"command": "wolframscript",
"ports": "49152-65535"
}
}
}
Describe the bug
wolframscript doesn't start in vscode, even the terminal that vscode opens, but wolframscript is installed and works in all other terminals (like cmd, pws, etc.) that I run manually directly.
Expected behavior
The wolframscript work on my vscode.
Environment (please complete the following information):
Additional context
[Thu, 09 Feb 2023 19:30:08 GMT] kernelIsRemote = false, kernelPort = 63013
[Thu, 09 Feb 2023 19:30:08 GMT] kernelInitPath = c:\Users\user.vscode\extensions\njpipeorgan.wolfram-language-notebook-0.1.0\resources\init-compressed.txt
[Thu, 09 Feb 2023 19:30:08 GMT] kernelRenderInitPath = c:\Users\user.vscode\extensions\njpipeorgan.wolfram-language-notebook-0.1.0\resources\render-html.wl
[Thu, 09 Feb 2023 19:30:08 GMT] launchCommand = wolframscript
[Thu, 09 Feb 2023 19:30:08 GMT] launchArguments = -code,ToExpression["zmqPort=63013;"<>Uncompress["1:eJy9PA1X27iy96e4gsMBrkJJ+7bvHSB54fOWu0ApSXfvWdcLJhHEi2OnttNCQ/afvf/2ZvRhS7IdUtpddimJJY1Go9F8yy+u44vu/7n/+MfqurO1de737/xbtrXlrK993Gy+wl/e0GX9LIijvGF1/
[Thu, 09 Feb 2023 19:30:08 GMT] Error occured in spwaning the kernel process:
Error: spawn wolframscript ENOENT
Thank you for this plugin!
Is your feature request related to a problem?
The output only appears at the end of the evaluation.
However, often if one encounters problems, the cell will never fully evaluate.
Stopping the cell leads to no output at all.
This makes debugging really hard.
Describe the solution you'd like
Live print output like in Mathematica notebooks.
If possible also PrintTemporary
output.
Additional context
Example code:
Do[
Print[i]; Pause[1]
, {i, 1, 5}
]
I have not been able to start the kernel even after restarting the computer. I received this popup error:
The kernel has stopped due to the following error:
The first packet is not a InputNamePacket;
packet=Message[acket[SetOptions, optnf]
Screenshots
[Fri, 07 Oct 2022 09:00:50 GMT] kernelIsRemote = false, kernelPort = 52714
[Fri, 07 Oct 2022 09:00:50 GMT] kernelInitPath = /home/name/.vscode/extensions/njpipeorgan.wolfram-language-notebook-0.1.0/resources/init-compressed.txt
[Fri, 07 Oct 2022 09:00:50 GMT] kernelRenderInitPath = /home/name/.vscode/extensions/njpipeorgan.wolfram-language-notebook-0.1.0/resources/render-html.wl
[Fri, 07 Oct 2022 09:00:50 GMT] launchCommand = wolframscript
[Fri, 07 Oct 2022 09:00:50 GMT] launchArguments = -code,ToExpression["zmqPort=52714;"<>Uncompress["1:eJy9PA1X27iy96e4gsMBrkJJ+7bvHSB54fOWu0ApSXfvWdcLJhHEi2OnttNCQ/afvf/2ZvRhS7IdUtpddimJJY1Go9F8yy+u44vu/7n/+MfqurO1de737/xbtrXlrK993Gy+wl/e0GX9LIijvGF1/
[Fri, 07 Oct 2022 09:00:51 GMT] Received the following data from kernel:
[Fri, 07 Oct 2022 09:00:51 GMT]
[Fri, 07 Oct 2022 09:00:52 GMT] Received the following data from kernel:
[Fri, 07 Oct 2022 09:00:52 GMT] $CommandLine={/usr/local/Wolfram/Mathematica/13.1/SystemFiles/Kernel/Binaries/Linux-x86-64/WolframKernel, -runfirst, Unprotect[$EvaluationEnvironment];$EvaluationEnvironment="Script";Protect[$EvaluationEnvironment
[Fri, 07 Oct 2022 09:00:52 GMT] Received the following data from kernel:
[Fri, 07 Oct 2022 09:00:52 GMT] $ScriptCommandLine={wolframscript, -code, ToExpression["zmqPort=52714;"<>Uncompress["1:eJy9PA1X27iy96e4gsMBrkJJ+7bvHSB54fOWu0ApSXfvWdcLJhHEi2OnttNCQ/afvf/2ZvRhS7IdUtpddimJJY1Go9F8yy+u44vu/7n/+MfqurO1de737/xbtrXlrK993Gy+
[Fri, 07 Oct 2022 09:00:52 GMT] Received the following data from kernel:
[Fri, 07 Oct 2022 09:00:52 GMT] Using the following command to launch the subkernel process:
[Fri, 07 Oct 2022 09:00:52 GMT] Received the following data from kernel:
[Fri, 07 Oct 2022 09:00:52 GMT] /usr/local/Wolfram/Mathematica/13.1/SystemFiles/Kernel/Binaries/Linux-x86-64/WolframKernel -noicon -wstp -linkprotocol SharedMemory -linkmode connect -linkname doktjhhm6y8t1a5z
[Fri, 07 Oct 2022 09:00:53 GMT] Killing kernel process, pid = 3662
[Fri, 07 Oct 2022 09:00:53 GMT] Process exited with code 0 and signal null.
Environment:
Is your feature request related to a problem?
The third option for Column does not seem to work. I suppose this is because TeXForm does not take that option into account. I use Column to read long or dense lists.
Describe the solution you'd like
This code roughly mimics the third spacing option and modifies the TeXForm as well by mapping elements to column with "" entries :
(
column[a_,b_:Automatic,c_:0]/; IntegerQ[c] && c>=0 :=
If[c==0,
Column[a,b,c],
Column[a//Map[Column@Prepend[ConstantArray["",c],#]&]
,
b
]
]
)
The issue is that the third option of Column can also handle non integer values for the third argument. I suppose one might first omit the third option then modify the TexForm output using string manipulations to adjust the spacing. I can look into that if needed.
Question :
Is it possible to add something similar to the output renderer ?
First, let me thank you for this great extension. I have been looking for something like this for quite some time. And now to the problem :) ...
Describe the bug
Colors seem to be presented wrong. Let's say I want to do a simple Plot and have a Red Background using
Plot[Sin[x], {x, 1, 2*Pi}, Background->Red]
I get the image shown below. The image clearly does not show a pure red background. Same goes for different colors and different Graphics creations like Graphics[{Red, Disk[{0,0}]}]
, which leads to the same wrong color output. It seems that there is some color adjustment done by default, which leads to wrong color output.
Expected behavior
The colors should display according to code input.
Environment
[Thu, 02 Dec 2021 03:27:49 GMT] kernelIsRemote = false, kernelPort = 65434
[Thu, 02 Dec 2021 03:27:49 GMT] launchCommand = wolframscript
[Thu, 02 Dec 2021 03:27:49 GMT] launchArguments = -code,ToExpression["zmqPort=65434;"<>Uncompress["1:eJzFXP9T20iyv//i/aoMFM9QsmOS2rv3APlMCHnhli8BO5eqVXQgrAnWIUteSQ54jfO3X/d8kWZGkvElu/eoSrA1Mz093T3dn+4Z8eI2uRr8189/+lNrx9rb++CP7v07urdn7Wx/7u6+wn+sYUBHe
[Thu, 02 Dec 2021 03:27:50 GMT] Received the following data from kernel (stderr):
[Thu, 02 Dec 2021 03:27:50 GMT]
Your Wolfram Engine installation is not activated or is experiencing a license-related problem.
Please run wolframscript with the -activate option, and then try
your original wolframscript command again.
[Thu, 02 Dec 2021 03:27:50 GMT] Killing kernel process, pid = 1014
[Thu, 02 Dec 2021 03:27:50 GMT] Process exited with code 255 and signal null.
用内置命令重启内核后会直接失败并且出现授权问题,直接在命令行输入wolframscript会出现免费的liscense只能两个设备使用的问题,从而激活不了
The Wolfram Engine could not be activated using your Wolfram ID.
This may have occurred because WolframScript has already activated a different
installation of the Wolfram Engine using your account's limited
free activation keys. Only two keys are generated
when you create a free Wolfram Engine license using
https://www.wolfram.com/engine/free-license/.
For additional Wolfram Engine keys, contact Wolfram Research at
https://www.wolfram.com/contact-us/.
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
When I try to use any command from WolframLanguageNotebook I receive the following error:
Command 'Wolfram Language
Notebook: Create New Wolfram Language Notebook' resulted in an error (command
'wolframLanguageNotebook.new
Notebook' not found)
Today I used this extension on my Windows 11 PC and everything was OK.
I have successfully downloaded the extension, but it seems not activated. When I try to create a new notebook, I encountered the error --- command "wolframLanguageNotebook.newNotebook" not found.
Environment (please complete the following information):
Additional context
I have tried this extension on a windows pc, and it works perfectly.
Is your feature request related to a problem?
Now each time when I launch a notebook, I have to manually choose the kernel, wait for it to connect, then do some calculation.
Describe the solution you'd like
It could remember the kernel, auto connect to it.
When I check the runtime status of the newly installed Wolfram Language extension (1.7.0) it says "Not yet activated".
None of the commands associated with this extension appear in the pallette.
How do I activate the Wolfram Language extension.
Is your feature request related to a problem?
Yes,when I use Animated function like Animate[Show[ Graphics[Disk[{x, 5/(1 + E^-x)}, 0.2], PlotRange -> {{- 6, 6}, {-0.4, 5.4}}], Plot[5/(1 + E^-x), {x, -6, 6}, PlotRange -> {{-6, 6}, {-0.4, 5.4}}]], {x, -5.8, 5.8, 0.1}, AnimationRunning -> False]
,it does show a graph with buttons and a scroll bar,but actually they are inoperable.
Describe the solution you'd like
They should be operable
Description
I find the treatment of empty line and comment in wolfram-language-notebook is different from that in mathematica notebook.
I guess this issue is related to \[NewLine]
and wolframscript. It may not be a bug, but sometimes I find it inconvenient when I want to reuse the output via Out[n]
.
Environment:
I've installed version 0.0.10 in VSCode 1.68, and I am using Wolfram Engine 13.0.1 on Windows 10. Attempting to connect to a kernel, using the default wolframscript
configuration, fails with the following log output:
[Sun, 12 Jun 2022 16:19:28 GMT] kernelIsRemote = false, kernelPort = 59322
[Sun, 12 Jun 2022 16:19:28 GMT] kernelInitPath = c:\Users\dylan\.vscode\extensions\njpipeorgan.wolfram-language-notebook-0.0.10\resources\init-compressed.txt
[Sun, 12 Jun 2022 16:19:28 GMT] kernelRenderInitPath = c:\Users\dylan\.vscode\extensions\njpipeorgan.wolfram-language-notebook-0.0.10\resources\render-html.wl
[Sun, 12 Jun 2022 16:19:28 GMT] launchCommand = wolframscript
[Sun, 12 Jun 2022 16:19:28 GMT] launchArguments = -code,ToExpression["zmqPort=59322;"<>Uncompress["1:eJy9PA1X27iy96e4gsMBrkJJ+7bvHSB54fOWu0ApSXfvWdcLJhHEi2OnttNCQ/afvf/2ZvRhS7IdUtpddimJJY1Go9F8yy+u44vu/7n/+MfqurO1de737/xbtrXlrK993Gy+wl/e0GX9LIijvGF1/
[Sun, 12 Jun 2022 16:19:30 GMT] Received the following data from kernel:
[Sun, 12 Jun 2022 16:19:30 GMT] <INITIALIZATION STARTS>
[Sun, 12 Jun 2022 16:19:33 GMT] Received the following data from kernel:
[Sun, 12 Jun 2022 16:19:33 GMT] $CommandLine={C:/Program Files/Wolfram Research/Wolfram Engine/13.0/wolfram.exe, -runfirst, Unprotect[$EvaluationEnvironment];$EvaluationEnvironment="Script";Protect[$EvaluationEnvironment];, -linkmode, Connect, -
[Sun, 12 Jun 2022 16:19:33 GMT] Received the following data from kernel:
[Sun, 12 Jun 2022 16:19:33 GMT] $ScriptCommandLine={wolframscript, -code, ToExpression["zmqPort=59322;"<>Uncompress["1:eJy9PA1X27iy96e4gsMBrkJJ+7bvHSB54fOWu0ApSXfvWdcLJhHEi2OnttNCQ/afvf/2ZvRhS7IdUtpddimJJY1Go9F8yy+u44vu/7n/+MfqurO1de737/xbtrXlrK993Gy+
[Sun, 12 Jun 2022 16:19:33 GMT] Received the following data from kernel:
[Sun, 12 Jun 2022 16:19:33 GMT] Using the following command to launch the subkernel process:
[Sun, 12 Jun 2022 16:19:33 GMT] Received the following data from kernel:
[Sun, 12 Jun 2022 16:19:33 GMT] C:/Program Files/Wolfram Research/Wolfram Engine/13.0/wolfram.exe -noicon -wstp -linkprotocol SharedMemory -linkmode connect -linkname qnuuu1jsqc0r55ie
[Sun, 12 Jun 2022 16:19:35 GMT] Received the following data from kernel:
[Sun, 12 Jun 2022 16:19:35 GMT]
LinkObject::linkd: Unable to communicate with closed link LinkObject[qnuuu1jsqc0r55ie, 192, 2].
[Sun, 12 Jun 2022 16:19:35 GMT] Killing kernel process, pid = 27420
[Sun, 12 Jun 2022 16:19:35 GMT] Process exited with code 0 and signal null.
Note that I have put C:\Program Files\Wolfram Research\Wolfram Engine\13.0
and C:\Program Files\Wolfram Research\WolframScript
on PATH.
I'm very glad to know this wonderful vscode plugin here, but I've the following question:
Can this plugin support writing wl
script, i.e., the file with .wl
extension, directly in vscode? I've noticed that the official vscode-wolfram
plugin has this feature.
Regards,
HZ
As the title suggests
Everything is okay include display an equation, solve a differential equation.
THE IMAGE JUST DONT SHOWN UP, even if there's no an error report
Expected behavior
A clear and concise description of what you expected to happen.
Environment (please complete the following information):
Here is my configuration settings
Activated license expired
I installed the free Wolfram Engine in Windows Subsystem of Linux, Ubuntu 20.04.3 LTS and tried using it with this extension in VSCode. However, each time after using it for a while, wolframscript prompts that the license is no long valid.
The Problem might be the kernel limit.
When I'm using wolfram-language-notebook, command
pgrep wolfram
returns 2 pid.
When I'm using wolframscript in command-line, command
pgrep wolfram
returns 1 pid.
Environment
Is your feature request related to a problem?
A clear and concise description of what the problem is.
https://mathematica.stackexchange.com/questions/7768
Recently, I want to profile a code. So I found this, but it needs a Debugger, and just run
f[x_] := x^2
Table[f[x], {100000}]; // RuntimeTools`Profile
Not work.
Describe the solution you'd like
A clear and concise description of what you want to happen.
Any method to use it? Or impossible to use?
Additional context
Add any other context or screenshots about the feature request here.
无法使用类型为“wolfram-language-notebook”的笔记本编辑器打开资源,请检查是否已安装或启用了正确的扩展。
终端中出现如下错误
[2021-11-30 21:10:31.916] [renderer1] [info] Starting extension host with pid 42715.
[2021-11-30 21:10:31.917] [renderer1] [info] [LocalProcessExtensionHost]: IExtensionHostStarter.start() took 12 ms.
[2021-11-30 21:10:32.089] [renderer1] [error] [Extension Host] (node:42715) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `Code Helper (Renderer) --trace-deprecation ...` to show where the warning was created)
Hi !
I am really impressed by this really nice piece of software. It does much better than the jupyter notebook on my computer running Linux.
A real issue though is that I cannot share my notebook. It would be really nice to add pdf printing capabilities. I tried several extensions to print the notebook with no success until now.
Thank you very much for your work !
Describe the bug
Can't connect to kernel using this extension, but it's ok with cmd, I am using mma13.0.
When tap manage kernel and choose wolframscript, wolfram kernel will show up and everything stuck in this step, and then time out.
Expected behavior
vscode should connect to the kernel
Environment (please complete the following information):
最近在自己写扩展,发现只要有 require('mathjax')
,就会崩,要么报错 Cannot set property Package of #<Object> which has only a getter.
,要么 .wlnb
打不开。
复现过程:(wolfram-language-notebook
已经装好)
使用 yo code
或者 npx yo code
新建一个 javascript
扩展
在扩展文件夹下 npm install mathjax@3
在 extension.js
中,hello world
的函数下加上 require('mathjax')
,如图。已经删除各种注释了,这里是最小的示范,只require
,不做其他任何事情。
F5 运行插件,新建/打开一个.wlnb
文件,ctrl+shift+p
执行命令hello world
,然后立即报错:
很好奇这个问题。因为上述测试,在 jupyter notebook
下是可以跑通的。
这个问题涉及最近写的扩展 Ultra Math Preview.
Environment (please complete the following information):
感谢!
一开始不小心按回车发出去了,已修改。
[2021-12-01 01:01:53.024] [exthost] [error] Activating extension njpipeorgan.wolfram-language-notebook failed due to an error:
[2021-12-01 01:01:53.024] [exthost] [error] Error: No native build was found for platform=darwin arch=arm64 runtime=electron abi=89 uv=1 armv=8 libc=glibc node=14.16.0 electron=13.5.2
loaded from: /Users/xiajunwen/.vscode/extensions/njpipeorgan.wolfram-language-notebook-0.0.2/node_modules/zeromq
I think this could be an issue from VSCode itself, cause the intel build is OK. Maybe this error should be posted to VSCode team as well.
Hello,
First of all thank you for your amazing work! This has recently turned into one of the main ingredient of my workflow. I can also see this becoming essential for students or amateurs, as no expensive mathematica license is required.
I was wondering if there was some some progress on this old issue of opening .nb
directly in VS Code?
I often need to exchange notebooks with my collaborators, which led me to develop my own conversion script, available on my github. It is not very powerful, but sufficient for most of my cases (it only works as long as the formatting in the notebook is not too crazy).
The easiest way I discovered was to first convert the notebook to a .m
file, which can be done either manually from the notebook itself, or using a rather ugly wolfram script. After that I just parse it in python.
I know absolutely nothing about VS Code extensions, do you think this could be included in some form?
Thank you for the great extension! It looks very promising.
Starting kernel fails with message
The kernel has stopped due to the following error: Failed to create main and preemptive links; $kernel=$Failed
The probable reason for this is that link cannot be created with LinkCreate[CreateUUID[]]
under macOS. When I try this in Mathematica notebook I get
although this works under Linux.
(see init.wl
lines 96/97)
Changing these lines to
$kernel=LinkCreate[];
$preemptive=LinkCreate[];
(and recompressing init-compressed.txt
) fixes the issue for me (kernel takes care that names are unique)
all Wolfram Language Noteboot command not found
Expected behavior
A clear and concise description of what you expected to happen.
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
Describe the bug
When plotting a defined function, there is an extra $DisplayFunction[]
around the desired figure.
Expected behavior
Directly output the figure
Environment (please complete the following information):
When trying to run the notebook it says "The kernel has stopped due to the following error: The first packet is not a InputNamePacket; packet=$Failed". How should I fix this?
It's a fresh install of everything.
Describe the bug
Some characters are rendered incorrectly
Expected behavior
The natural constant, as the base of the exponent, should be shown as e. And c1.
Environment (please complete the following information):
Is your feature request related to a problem?
A clear and concise description of what the problem is.
the definition can't be shown at one glance.
Describe the solution you'd like
A clear and concise description of what you want to happen.
This may be better?
Additional context
Add any other context or screenshots about the feature request here.
Hi,
Thank you for your work as it allows a rather nice notebook environment (especially with github copilot).
Describe the bug
"Graph and Dataset objects are returned in input form and the default image size for Graphics is quite big"
Expected behavior
"Graph and Dataset objects should return an image and the default image size for Graphics should maybe be smaller"
Environment (please complete the following information):
About this issue of WolframLanguageForJupyter, WolframResearch/WolframLanguageForJupyter#83
However now wolfram notebook for vscode
shows
I think it can be more beautiful. Thanks! 😃
Describe the bug
After an apparently successful installation, opening new Wolfram Notebooks fails with an error "command wolframLanguageNotebook.newNotebook not found" (screenshot attached). The same happens with the Manage Kernel command.
Expected behavior
A new notebook should open.
Environment (please complete the following information):
Additional context
I've checked that the wolframscript command does work as expected from the CLI, and that there are no running Wolfram processes when trying to open a notebook.
I was able to make the extension work on another machine (which, however, runs Windows).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.