Comments (6)
Thanks for doing the tests! The error in the wlnb showed that the kernel somehow failed to execute ExportByteArray
, which is beyond the control of the extension, so there is very little I can do with it. The complication here is that the "kernel" alone is not able to do the entire export--it needs to launch a front-end to do the printing (even for products without an explicit front-end like Wolfram Engine). That might explain why it worked in a Wolfram notebook.
The final thing I want to check is what would happen if you run this code from the text-based kernel program (or running WolframKernel from the terminal), because it is close to how everything works in wlnb.
Since the same problem does not occur on my end, reinstalling Mathematica may help.
from wolfram-language-notebook.
I test it in terminal and the error still exists. So I think it is the problem of wolfram kernel
.
Then I reinstall wolfram engine
(upgrade to 13.0) and everything goes back to normal!
and here is PDF file 👇(TeXForm
disappears, but it doesn't matter)
Thank you 👏!
from wolfram-language-notebook.
Thanks for the feedback. I did the same test in the same environment, but I was not able to replicate this issue.
Can you export as a Wolfram notebook in this case? If so, could you attach the content of the exported Wolfram notebook so that I can investigate the issue?
from wolfram-language-notebook.
Here is it. I have disabled all other extensions, but it failed as well.
Notebook[{
Cell[BoxData[{"$Version"}],"Input"],
Cell[BoxData["\"12.3.1 for Microsoft Windows (64-bit) (June 24, 2021)\""],"Output",CellLabel->"Out[1]= "],
Cell[BoxData[{RowBox[{RowBox[{"Integrate", "[", RowBox[{RowBox[{"E", "^", RowBox[{"(", RowBox[{"-", RowBox[{"x", "^", "2"}]}], ")"}]}], ",", RowBox[{"{", RowBox[{"x", ",", "0", ",", "Infinity"}], "}"}]}], "]"}], "//", "TeXForm"}]}],"Input"],
Cell[BoxData["\"\\\\frac{\\\\sqrt{\\\\pi }}{2}\""],"Output",CellLabel->"Out[3]//TeXForm= "]
}]
from wolfram-language-notebook.
Thanks. It seems that kernel did not convert the notebook into PDF as expected. Could you run the following code (in the session where export as PDF fails) that tests this functionality?
notebook = Import[".../test.nb", "Text"]; (*replace ... with the path to the exported Wolfram notebook*)
pdf = BaseEncode[ExportByteArray[ToExpression[notebook, InputForm], "PDF"], "Base64"];
{Head[pdf], StringLength[pdf]}
If everything is normal, the result should be {String, ~70,000}
.
from wolfram-language-notebook.
I copied the code into test.wlnb
and then it threw 'file not found' error:
1643281092689.mp4
However when I tested it in exported test.nb
file, it seemed okay:
1643281086270.mp4
from wolfram-language-notebook.
Related Issues (20)
- Add dynamic plot3d HOT 1
- Command 'Wolfram Language Notebook: Create New Wolfram Language Notebook' resulted in an error (command 'wolframLanguageNotebook.new Notebook' not found) HOT 4
- Graph and Dataset objects are not rasterized and the default image size for Graphics is large HOT 2
- Adjustable column spacing
- Command wolframscript cannot be launch HOT 1
- ClassifierFunction output is huge HOT 1
- add partly local manual support HOT 1
- About importing .nb in VS Code
- Not able to launch the kernel HOT 2
- Use ?? or Information to give hover information HOT 1
- "Could not initialize webview" error HOT 2
- Copy latex equation HOT 1
- Automatic connect to kernel HOT 1
- Error:command "wolframLanguageNotebook.newNotebook" not found HOT 7
- command not found
- [Question/Feature Request] Importing an .wl file from workspace path
- BoxForm render problem
- autocomplete for defined variables
- No output from wolframscript HOT 1
- Rendering Failed error with plot HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wolfram-language-notebook.