Re: >>> %matplotlib inline results in SyntaxError: invalid syntax

2023-12-25 Thread Chris Grace via Python-list
"%matplotlib inline" is a magic command that changes how plots render when
working with IPython. Read more here: https://stackoverflow.com/a/43028034

The article you linked assumes you are working in an IPython shell, not
IDLE. This is common in the data science world.

You may already have IPython installed. Try running it from a command line
with `python -m IPython`. If that doesn't work, you can first install it
with `python -m pip install IPython`, then run the 1st command.

IPython is commonly used as a Jupyter Notebook kernel. See
https://jupyter-notebook-beginner-guide.readthedocs.io/en/latest/index.html
for more information about Jupyter Notebook.

I'd also recommend a newer version of python. Python 3.4 reached end of
life almost 5 years ago. Some of the packages used in the linked article no
longer officially support python 3.4. That doesn't necessarily mean that
you'll experienced issues using python 3.4, but much has changed in the 7
years since that article was written.

On Mon, Dec 25, 2023, 2:53 PM Alan Gauld via Python-list <
python-list@python.org> wrote:

> On 25/12/2023 05:34, geetanajali homes via Python-list wrote:
>
> >> import numpy as np
> >> import pandas as pd
> >> import random
> >> import matplotlib.pyplot as plt
> >> %matplotlib inline
> >>
> >> I get an error on the last line. I am running this code in Idle Python
> >> 3.4.4 Shell...
>
> Python names can't start with a % (its the modulo or
> string formatting operator).
>
> I know nothing of the innards of matplotlib so I can only
> suggest a closer examination of their tutorial information.
>
> --
> Alan G
> Author of the Learn to Program web site
> http://www.alan-g.me.uk/
> http://www.amazon.com/author/alan_gauld
> Follow my photo-blog on Flickr at:
> http://www.flickr.com/photos/alangauldphotos
>
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: help

2022-12-30 Thread Chris Grace
Hello,

The mailing list strips all images. We cannot see the error you posted. I'd
recommend posting it in text form.

What is the script you are running?

What do you expect your script to do?

On Fri, Dec 30, 2022, 3:14 PM Mor yosef  wrote:

> Hello guys,
> i install python 3.11.1, and i have google chrome so i download the
> Webdriver Chrome
> and i just add it on my c:// driver and when i add some script on my
> desktop i try to run it from the terminal and all the time i receive this
> error message : maybe you guys can help me with this one?
> when i add some random code the terminal like "python -m webbrowser
> https://www.google.com; it's just works (it's open the website in new tab)
> Regards
> Mor yosef
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list