export – Issue when exporting vector graphics (PDF) to Mathematica notebook front-end with remote kernel on Linux

I can not export vector graphic images (especially PDF) to a Mathematica notebook frontend in Windows 8.1 with a remote kernel on a Linux server.

However, I can easily export raster image formats.

Interestingly enough, when accessing the server directly from the ssh command line, the Mathematica kernel starts and runs export Command, it works fine.

Mathematica 11.3 is the version used on both computers.

Example of a Mathematica notebook:

Set directory["/home/results"]

plt = plot[x, {x, 0, 1}]

export["test.gif", plt]  (*Works well*)

export["test.jpg", plt]  (*Works well*)

export["test.png", plt]  (*Works well*)

export["test.pdf", plt]  (*It does not work*)

export["test.eps", plt]  (*It does not work*)

Notebook file corruption – Mathematica Stack Exchange

In recent years, the onset of Mathematica notebook files on my computers has often been damaged (Mathematica 11.x on Windows). When I open it with Windows Notepad, the first line is nonsense. Normally, the first text that is not corrupted is the CacheID line. Damaged lines can also be inserted further into the notebook. When I open these notebook files with Mathematica, I get the message box titled "Why is the beep?" In that "An error appears in the file names below, you should close it without saving it, and then" Check Parse and Load The entire notebook will be put into memory in the Memo Options dialog box after the check box is selected Name / address of the file. Any ideas what causes this? Thank you for any help you can give.

Parallelization – Calling the MPI process in the terminal of the MMA notebook (RunProcess / Run) on the Mac

I have to run my MMA notebook with an MPI + C process and retrieve the output from it. In a simple case without MPI, it's easy:

RunProcess[{"/name_of_executable", ToString[argument]}, "Standard Output"]

But my line is: mpirun -n #threads ./name_of_executable argument

How do I make MMA do that? Thank you in advance!

linux – Jupyter notebook kernel error due to file not found / run / user / * / jupyter

I am running a jupyter 4.4.0 notebook service (jupyter notebook – no-browser – port 8889) on a Fedora 27 server, which I can remotely access via a browser. After using the service for a few hours without any problems, I get a "kernel error". Within the first hours, I can start new notebooks without errors. After some time, however, I get the error message. It clearly tells me that the kernel error on missing file & # 39; /run/user/1001/jupyter/kernel-869f88b2-0895-40fb-b759-c518a1686484.json' is due.

In further investigations, I found that the file is missing because the entire Jupyter directory under / run / user / 1001 is missing. The jupyter directory appears to be created the first time the service is started and will be automatically deleted after some time.

Search days have shown that the problem is likely due to inactivity, causing the operating system or the Jupyter service to drop the / run / user / 1001 / jupyter directory.

So far I could not find out exactly what deletes the directory / run / user / 1001 / jupyter or how to prevent it. Do you know how this could be solved?

error message

Traceback (last call last):
File "/opt/anaconda3/lib/python3.6/site-packages/tornado/web.py", line 1469, in _execute
Result = earnings result
File "/opt/anaconda3/lib/python3.6/site-packages/tornado/gen.py", line 1015, in progress
value = future.result ()
File "/opt/anaconda3/lib/python3.6/site-packages/tornado/concurrent.py", line 237, as a result
raise_exc_info (self._exc_info)
File "", Line 3, in raise_exc_info
File "/opt/anaconda3/lib/python3.6/site-packages/tornado/gen.py", line 1021, in progress
result = self.gen.throw (* exc_info)
File "/opt/anaconda3/lib/python3.6/site-packages/notebook/services/sessions/handlers.py", line 73, in post
type = mtype))
File "/opt/anaconda3/lib/python3.6/site-packages/tornado/gen.py", line 1015, in progress
value = future.result ()
File "/opt/anaconda3/lib/python3.6/site-packages/tornado/concurrent.py", line 237, as a result
raise_exc_info (self._exc_info)
File "", Line 3, in raise_exc_info
File "/opt/anaconda3/lib/python3.6/site-packages/tornado/gen.py", line 1021, in progress
result = self.gen.throw (* exc_info)
File "/opt/anaconda3/lib/python3.6/site-packages/notebook/services/sessions/sessionmanager.py", line 79, in create_session
kernel_id = return self.start_kernel_for_session (session_id, path, name, type, kernel_name)
File "/opt/anaconda3/lib/python3.6/site-packages/tornado/gen.py", line 1015, in progress
value = future.result ()
File "/opt/anaconda3/lib/python3.6/site-packages/tornado/concurrent.py", line 237, as a result
raise_exc_info (self._exc_info)
File "", Line 3, in raise_exc_info
File "/opt/anaconda3/lib/python3.6/site-packages/tornado/gen.py", line 1021, in progress
result = self.gen.throw (* exc_info)
File "/opt/anaconda3/lib/python3.6/site-packages/notebook/services/sessions/sessionmanager.py", line 92, in start_kernel_for_session
self.kernel_manager.start_kernel (path = kernel_path, kernel_name = kernel_name)
File "/opt/anaconda3/lib/python3.6/site-packages/tornado/gen.py", line 1015, in progress
value = future.result ()
File "/opt/anaconda3/lib/python3.6/site-packages/tornado/concurrent.py", line 237, as a result
raise_exc_info (self._exc_info)
File "", Line 3, in raise_exc_info
File "/opt/anaconda3/lib/python3.6/site-packages/tornado/gen.py", line 285, in the wrapper
result = next (result)
File "/opt/anaconda3/lib/python3.6/site-packages/notebook/services/kernels/kernelmanager.py", line 160, in start_kernel
super (MappingKernelManager, itself) .start_kernel (** kwargs)
File "/opt/anaconda3/lib/python3.6/site-packages/jupyter_client/multikernelmanager.py", line 110, in start_kernel
km.start_kernel (** kwargs)
File "/opt/anaconda3/lib/python3.6/site-packages/jupyter_client/manager.py", line 240, in start_kernel
self.write_connection_file ()
File "/opt/anaconda3/lib/python3.6/site-packages/jupyter_client/connect.py", line 472, in write_connection_file
kernel_name = self.kernel_name
File "/opt/anaconda3/lib/python3.6/site-packages/jupyter_client/connect.py", line 137, in write_connection_file
with open (fname, & # 39; w & # 39;) as f:
FileNotFoundError: [Errno 2] No such file or directory: & # 39; /run/user/1001/jupyter/kernel-869f88b2-0895-40fb-b759-c518a1686484.json'

Many Thanks

Automatically generate a notebook – Mathematica Stack Exchange

Good evening,

I'm interested in automatically creating a notebook with specific instructions, such as Python.
For example, I want to generate the file NewNote.nb (a real Mathematica notebook, not just a .nb file) with the statement

To press[2+2]

After running my Python program, I was able to open NewNote.nb while I was opening a regular notebook and run it as a regular notebook, outputting issue 4 as expected. I do not want to run the notebook automatically. I just want to create it so it's created automatically.

The problem I face, however, is that a Mathematica notebook contains a lot of internal cache information. and if I generate a .nb file without it, it will not work as a real Mathematica notebook.

Any ideas?

thank you in advance

Slideshows – Remove a slide from a notebook

A "slide" showed up in a notebook. How do I remove it? My workaround was to copy the rest of the notebook and paste it into another notebook. I could not find any information on slides in a notebook. Deleting the right bracket did not work. I could not find any "equipment" I do not know how it turned out, probably a keystroke. Previous question had a wrong screenshot and should be removed. I can not do that either?

Enter the image description here

Palettes and notebook windows behave incorrectly

I've upgraded to Mathematica version 11.3 and am now experiencing a bizarre problem with the palettes and some of my notebook files. The content is reduced relative to the window size. See below.
Example-range error

Example notebook error

If I change the zoom level (bottom left), the problem just gets bigger. The action of the mouse cursor appears to be offset from the actual position of the mouse cursor as if the contents of the window were correct. For example, if I place the cursor where you want a specific palette item to appear, the tooltip for that item appears.

Help?