Title: Issue when using Wolfram WebEngine Py for generating documents · Issue #13 · WolframResearch/WolframWebEngineForPython · GitHub
Open Graph Title: Issue when using Wolfram WebEngine Py for generating documents · Issue #13 · WolframResearch/WolframWebEngineForPython
X Title: Issue when using Wolfram WebEngine Py for generating documents · Issue #13 · WolframResearch/WolframWebEngineForPython
Description: PS: I'm posting this on behalf of Jörg Schönau at Additive GmbH We observed an issune when using WEPy for generating documents. It should be easy to reproduce following this steps: Create an initialization code file with the following co...
Open Graph Description: PS: I'm posting this on behalf of Jörg Schönau at Additive GmbH We observed an issune when using WEPy for generating documents. It should be easy to reproduce following this steps: Create an initia...
X Description: PS: I'm posting this on behalf of Jörg Schönau at Additive GmbH We observed an issune when using WEPy for generating documents. It should be easy to reproduce following this steps: Create an in...
Opengraph URL: https://github.com/WolframResearch/WolframWebEngineForPython/issues/13
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Issue when using Wolfram WebEngine Py for generating documents","articleBody":"**PS: I'm posting this on behalf of Jörg Schönau at Additive GmbH**\r\n\r\nWe observed an issune when using WEPy for generating documents.\r\nIt should be easy to reproduce following this steps:\r\n\r\n1. Create an initialization code file with the following content and \r\nname it `myinit.m`:\r\n```\r\nReportFunction[x_]:=Module[\r\n {nbobj, res},\r\n Print[\"myinit.m | ReportFunction | function started\"];\r\n Print[\"x: \"Head[x], \" x: \", InputForm[x]];\r\n UsingFrontEnd[\r\n Print[\"myinit.m | ReportFunction | after UsingFrontEnd\", x];\r\n nbobj = GenerateDocument[\"ExampleData/BasicTemplate.nb\", x];\r\n Print[\"myinit.m | ReportFunction | nbobj created: \", nbobj];\r\n res = ExportString[nbobj, \"HTML\"];\r\n Print[\"myinit.m | ReportFunction | res created: \", \r\nStringLength[res]];\r\n NotebookClose[nbobj];\r\n Print[\"myinit.m | ReportFunction | nbobj closed.\"];\r\n Return[res]\r\n ]\r\n]\r\n```\r\n\r\n2. Change the content of `testapp/form/index.wl` to:\r\n```\r\nFormFunction[\"author\" -\u003e \"String\", ReportFunction]\r\n```\r\n\r\n3. Now launch the WEPy like this:\r\n```\r\npy -3.11 -m wolframwebengine testapp --initfile myinit.m\r\n```\r\n\r\n4. Finally call that page in a browser `http://localhost:18000/form`\r\n\r\nNow you can put any string into that form and [ubmit\r\nThat page will run forever and the log file of WEPy says:\r\n```\r\nKernel writes commands to socket: \u003cSocket: uri=tcp://127.0.0.1:50973\u003e\r\nKernel receives evaluated expressions from socket: \u003cSocket: \r\nuri=tcp://127.0.0.1:50974\u003e\r\nInitializing Kernel logger on socket tcp://127.0.0.1:50977\r\nKernel process started with PID: 8\r\nConnected to logging socket: tcp://127.0.0.1:50977\r\nKernel 8 is ready. Startup took 4.61 seconds.\r\nGET /form done in 0.8590s: 200\r\n192.168.98.200 - Administrator [26/Mar/2024:10:38:04 +0100] \"myinit.m | \r\nReportFunction | function started\" 1 8\r\n\"x: \"*Association x: InputForm[\u003c|\"author\" -\u003e \"Otto Meier\"|\u003e]\r\n192.168.98.200 - Administrator [26/Mar/2024:10:38:06 +0100] \"myinit.m | \r\nReportFunction | after UsingFrontEnd \u003c|author -\u003e Otto Meier|\u003e\" 1 8\r\n```\r\n\r\nSo the evaluation stops after the `Mathematica.exe` has successfully \r\nlaunched.\r\nThe `GenerateDocument` command never evaluates...\r\n`WolframKernel.exe` and `Mathematica.exe` stay in the list of processes\r\nbut will not get stopped when stopping the WEPy script.","author":{"url":"https://github.com/s4m13337","@type":"Person","name":"s4m13337"},"datePublished":"2024-12-10T08:07:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/13/WolframWebEngineForPython/issues/13"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e3bd35f8-e848-aa76-e818-c6712edab238 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CCEE:3C8395:B4F9A3:FCD128:6982062B |
| html-safe-nonce | 9a33fef434b30613dfb88dc4746ac1144bf99a38f810e3f3878bbfa4a2d27f0f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0VFOjNDODM5NTpCNEY5QTM6RkNEMTI4OjY5ODIwNjJCIiwidmlzaXRvcl9pZCI6IjQ1MjI0MjUzNzI3NDIxMjUwOTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 73e22456ab2cbe9adce4d347ef6deff95a477e3fe2290a77270dbc98dad3e2c9 |
| hovercard-subject-tag | issue:2729337775 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/WolframResearch/WolframWebEngineForPython/13/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2528265e167ac12df1229ed267822887f3665e16996d1d09c65a89c5d14a97b7/WolframResearch/WolframWebEngineForPython/issues/13 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2528265e167ac12df1229ed267822887f3665e16996d1d09c65a89c5d14a97b7/WolframResearch/WolframWebEngineForPython/issues/13 |
| og:image:alt | PS: I'm posting this on behalf of Jörg Schönau at Additive GmbH We observed an issune when using WEPy for generating documents. It should be easy to reproduce following this steps: Create an initia... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | s4m13337 |
| hostname | github.com |
| expected-hostname | github.com |
| None | f4cb77e7923981a0a29ff46912061418d80b11552a75801d8d7c2ee8194cdf49 |
| turbo-cache-control | no-preview |
| go-import | github.com/WolframResearch/WolframWebEngineForPython git https://github.com/WolframResearch/WolframWebEngineForPython.git |
| octolytics-dimension-user_id | 11549616 |
| octolytics-dimension-user_login | WolframResearch |
| octolytics-dimension-repository_id | 207578815 |
| octolytics-dimension-repository_nwo | WolframResearch/WolframWebEngineForPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 207578815 |
| octolytics-dimension-repository_network_root_nwo | WolframResearch/WolframWebEngineForPython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c1e70b4927b942b903c1a0c1413d4c4f701459ad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width