https://bugs.kde.org/show_bug.cgi?id=469939
Bug ID: 469939 Summary: IPython command raises error in jupyter notebooks Classification: Applications Product: LabPlot2 Version: 2.10.0 Platform: Neon OS: Linux Status: REPORTED Severity: minor Priority: NOR Component: general Assignee: alexander.se...@web.de Reporter: yoyo.work....@gmail.com Target Milestone: --- Created attachment 159068 --> https://bugs.kde.org/attachment.cgi?id=159068&action=edit picture of the SyntaxError (in virtualenvironment) SUMMARY *** When using matplotlib and ipython installed both in virtual environment by disto repos, the command %matplotlib inline raises "SyntaxError: invalid syntax " *** STEPS TO REPRODUCE 1. install dependencies : apt install -y python3-{matplotlib,numpy,notebook,ipykernel} 2. create a LabPlot project, add new notebook in it 3. import numpy, matplotlib : is ok 4. in a command cell : insert '%matplotlib inline' OBSERVED RESULT File "/home/yoyo/Downloads/PyDataScience.lml", line 1 %matplotlib inline ^ SyntaxError: invalid syntax EXPECTED RESULT nothing , being abble to see matplotlib.pyplot.plot( x, y) in the notebook note : using plot.show()without trying to inline the matplotlib figure indeed does show the outside window with plot SOFTWARE/OS VERSIONS Linux/KDE Plasma: KDE Neon 5.27 (available in About System) KDE Plasma Version: 5.27.5 KDE Frameworks Version: 5.106.0 Qt Version: 5.15.9 ADDITIONAL INFORMATION In options , for CAS Python backend , I left the defaults : matplotlib as drawing lib , both plot integration and variable management enabled. Deed I miss something not being in the help book ? -- You are receiving this mail because: You are watching all bug changes.