I am working on the off-platform project Orion Constellation and I’m coming across an error I have not yet encountered. I’m working in VS Code Jupyter and It to use the following code:
%matplotlib widget
from matplotlib import pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
I have the module for matplotlib, but I cannot access Axes3D Could someone provide some feedback? Here is the error:
Output exceeds the size limit. Open the full output data in a text editor
--------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) Cell In [4], line 1 ----> 1 get_ipython().run_line_magic(‘matplotlib’, ‘widget’) 2 from matplotlib import pyplot as plt 3 from mpl_toolkits.mplot3d import Axes3D File ~\AppData\Roaming\Python\Python311\site-packages\IPython\core\interactiveshell.py:2364, in InteractiveShell.run_line_magic**(self, magic_name, line, _stack_depth)** 2362 kwargs[‘local_ns’] = self.get_local_scope(stack_depth) 2363 with self.builtin_trap: → 2364 result = fn(args, kwargs) 2365 return result File ~\AppData\Roaming\Python\Python311\site-packages\IPython\core\magics\pylab.py:99, in PylabMagics.matplotlib(self, line)* 97 print(“Available matplotlib backends: %s” % backends_list) 98 else: —> 99 gui, backend = self.shell.enable_matplotlib(args.gui.lower() if isinstance(args.gui, str) else args.gui) 100 self._show_matplotlib_backend(args.gui, backend) File ~\AppData\Roaming\Python\Python311\site-packages\IPython\core\interactiveshell.py:3528, in InteractiveShell.enable_matplotlib**(self, gui)** 3524 print(‘Warning: Cannot change to a different GUI toolkit: %s.’ 3525 ’ Using %s instead.’ % (gui, self.pylab_gui_select)) 3526 gui, backend = pt.find_gui_and_backend(self.pylab_gui_select) → 3528 pt.activate_matplotlib(backend) 3529 configure_inline_support(self, backend)
…
File :1178, in find_and_load**(name, import)** File :1142, in find_and_load_unlocked**(name, import)** ModuleNotFoundError: No module named ‘ipympl’