![]() ![]() ![]() Self.tk = _tkinter. Return cls.new_figure_manager_given_figure(num, fig)įile "/usr/lib/python3/dist-packages/matplotlib/backends/backend_tkagg.py", line 1049, in new_figure_manager_given_figureįile "/usr/lib/python3.6/tkinter/_init_.py", line 2023, in _init_ Mod_name, mod_spec, pkg_name, script_name)įile "/usr/lib/python3.6/runpy.py", line 85, in _run_codeįile "/home/*/vscode/test_plot.py", line 8, in įile "/usr/lib/python3/dist-packages/matplotlib/pyplot.py", line 539, in figureįile "/usr/lib/python3/dist-packages/matplotlib/backend_bases.py", line 171, in new_figure_manager n_path(target, run_name='_main_')įile "/usr/lib/python3.6/runpy.py", line 263, in run_pathįile "/usr/lib/python3.6/runpy.py", line 96, in _run_module_code ~/vscode$ cd /home/*/vscode env PYTHONIOENCODING=UTF-8 PYTHONUNBUFFERED=1 /usr/bin/python3 /home/*/.vscode-server/extensions/ms-python.python-201/pythonFiles/ptvsd_launcher.py -default -client -host localhost -port 39903 /home/*/vscode/test_plot.pyįile "/home/*/.vscode-server/extensions/ms-python.python-201/pythonFiles/ptvsd_launcher.py", line 43, in įile "/home/*/.vscode-server/extensions/ms-python.python-201/pythonFiles/lib/python/ptvsd/_main_.py", line 434, in mainįile "/home/*/.vscode-server/extensions/ms-python.python-201/pythonFiles/lib/python/ptvsd/_main_.py", line 312, in run_file ![]() In short my problem emerges with the following example code : import numpy as np Now create the directory where your keys will be kept: mkdir /.ssh It is also useful to find the IP address of your PI with: hostname -I Mine is 192.168.2.45 and I shall being using this in the examples. All you have to do is to install the Remote-SSH extension on VS Code. On the Pi, in the terminal enable SSH with: sudo raspi-config then select 3 Interface Options > I2 SSH and choose Yes Enable. I tried to modify some matlplotlib options, but it was unsucessful : import matplotlibĪs instructed in : _tkinter.TclError: no display name and no $DISPLAY environment variable Programming Raspberry Pi Remotely using VS Code (Remote-SSH) In this tutorial, we’ll show you a practical way to create and execute files remotely on your Raspberry Pi using VS Code on your computer. However, I am not able to generate figures coming from the "matplotlib" library. I use the SSH remote feature of vscode to remotely run and debug my code and I am very happy with the interface. I am setting up a remote workstation to run machine learning related python code from my laptop on another computer that includes a GPU. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |