Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Heisenberg may have slept here...


devel / comp.lang.python / Re: >>> %matplotlib inline results in SyntaxError: invalid syntax

SubjectAuthor
* Re: >>> %matplotlib inline results in SyntaxError: invalid syntaxgeetanajali homes
+- Re: >>> %matplotlib inline results in SyntaxError: invalid syntaxAlan Gauld
+- Re: >>> %matplotlib inline results in SyntaxError: invalid syntaxChris Grace
+- Re: >>> %matplotlib inline results in SyntaxError: invalid syntaxChris Angelico
`- Re: >>> %matplotlib inline results in SyntaxError: invalid syntaxMRAB

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

<d0d92e90-26bf-4b65-b634-cce452061312n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=24696&group=comp.lang.python#24696

  copy link   Newsgroups: comp.lang.python
X-Received: by 2002:a05:6214:4c19:b0:67f:7ef9:4a1b with SMTP id qh25-20020a0562144c1900b0067f7ef94a1bmr29996qvb.3.1703482485807;
Sun, 24 Dec 2023 21:34:45 -0800 (PST)
X-Received: by 2002:a05:6870:a709:b0:203:a858:f26d with SMTP id
g9-20020a056870a70900b00203a858f26dmr77853oam.3.1703482485266; Sun, 24 Dec
2023 21:34:45 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.python
Date: Sun, 24 Dec 2023 21:34:45 -0800 (PST)
In-Reply-To: <n8f2ol$fis$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=103.154.247.0; posting-account=IopPdgoAAABgGK81J91LI4D--WS-uf2w
NNTP-Posting-Host: 103.154.247.0
References: <n8f2ol$fis$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d0d92e90-26bf-4b65-b634-cce452061312n@googlegroups.com>
Subject: Re: >>> %matplotlib inline results in SyntaxError: invalid syntax
From: geetanja...@gmail.com (geetanajali homes)
Injection-Date: Mon, 25 Dec 2023 05:34:45 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 39
 by: geetanajali homes - Mon, 25 Dec 2023 05:34 UTC

On Friday 29 January 2016 at 12:34:47 UTC+5:30, Mike S wrote:
> I have installed Python 3.4.4 on XPSP3 and am trying to work my way
> through this tutorial.
>
> A Complete Tutorial on Ridge and Lasso Regression in Python
> http://www.analyticsvidhya.com/blog/2016/01/complete-tutorial-ridge-lasso-regression-python/
>
> In Step 2 "Why Penalize the Magnitude of Coefficients?" we are shown
> this code:
>
> #Importing libraries. The same will be used throughout the article.
> 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 3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 19:28:18) [MSC v.1600 32
> bit (Intel)] on win32
> Type "copyright", "credits" or "license()" for more information.
> >>> import numpy as np
> >>> import pandas as pd
> >>> import random
> >>> import matplotlib.pyplot as plt
> >>> %matplotlib inline
> SyntaxError: invalid syntax
>
> What am I doing wrong? Suggested reading?
> TIA,
> Mike
best commercial property in noida...
https://sayastatus129.in/
https://sikkamallnoida.com/
https://paras133.com/
https://gygynoida.in/
https://experion45noida.in/
https://krasacentrade.com/

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

<mailman.57.1703533986.2892.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=24698&group=comp.lang.python#24698

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail
From: learn2pr...@gmail.com (Alan Gauld)
Newsgroups: comp.lang.python
Subject: Re: >>> %matplotlib inline results in SyntaxError: invalid syntax
Date: Mon, 25 Dec 2023 19:53:02 +0000
Lines: 26
Message-ID: <mailman.57.1703533986.2892.python-list@python.org>
References: <n8f2ol$fis$1@dont-email.me>
<d0d92e90-26bf-4b65-b634-cce452061312n@googlegroups.com>
<fe20a520-acd7-2f8b-df80-09a71031b2a0@yahoo.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de 9MocjI2mhoxLooSqKExOtAAIxUVA01bgmmBy/p+GxLoQ==
Cancel-Lock: sha1:iKMMMKyl6LCHNE8XXQzw1/hxC1g= sha256:SndeEedG6j3yQhIjumMNFH94IzMtltGbSasD2EUeue8=
Return-Path: <learn2program@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=lSOL5mnY;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.001
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'random': 0.05;
'matplotlib': 0.07; 'string': 0.07; 'idle': 0.09; 'numpy': 0.09;
'pandas': 0.09; 'tutorial': 0.12; 'import': 0.15; 'examination':
0.16; 'flickr': 0.16; 'from:name:alan gauld': 0.16; 'message-
id:@yahoo.co.uk': 0.16; 'photo-blog': 0.16; 'subject:syntax':
0.16; 'url-ip:79.170.44.132/32': 0.16; 'url-ip:79.170.44/24':
0.16; 'url-ip:79.170/16': 0.16; 'url-ip:79/8': 0.16; 'url:alan-g':
0.16; 'url:alan_gauld': 0.16; 'url:alangauldphotos': 0.16;
'wrote:': 0.16; 'python': 0.16; "can't": 0.17; 'url:amazon': 0.19;
'to:addr:python-list': 0.20; 'code': 0.23; 'to:name:python-
list@python.org': 0.24; 'suggest': 0.28; 'error': 0.29; 'header
:User-Agent:1': 0.30; 'program': 0.31; 'python-list': 0.32;
'received:192.168.1': 0.32; 'header:In-Reply-To:1': 0.34;
'received:google.com': 0.34; 'running': 0.34;
'from:addr:gmail.com': 0.35; 'author': 0.37; 'received:192.168':
0.37; 'alan': 0.40; 'learn': 0.40; 'inline': 0.61; 'follow': 0.62;
'url:author': 0.69; 'site': 0.70; 'formatting': 0.76; 'homes':
0.84; 'subject:results': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1703533984; x=1704138784; darn=python.org;
h=content-transfer-encoding:in-reply-to:references:to
:content-language:subject:user-agent:mime-version:date:message-id
:from:from:to:cc:subject:date:message-id:reply-to;
bh=PuHjD8PLySFiGhp+X8dLrwhHdQ9sR5fhVs6346tdr70=;
b=lSOL5mnYB+CoMEQEuppZGZNsuhUKY+QruDsR+s/YCzyPgAa3+k4ZTYTasvH+4PJRIV
y0iWOdcEuaX95zMUskgQQY1peTIdrzt1NVU++DPU+8x+J8pdc1l6uS/xj8HYibabX/G/
Uy8BlLTD6ltmMyxkBSAU5sCGGL0uOsVgT0LmBgDHc2qYg2w4Rc0J2qwPJfKKvBmwNFQn
rbGfOVQVsYQgp7pScM2wGSHLZbBAtJShck4QMh0ltl2eyxiC1AtkJWxrUXCWO/8Am2TZ
xpiPgtcvRadQRONVg02zF4ED9gjsOBI1PeVhh+JCjQBCdU1hQazeLw0LZUnc+dxbZAGG
2ViA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1703533984; x=1704138784;
h=content-transfer-encoding:in-reply-to:references:to
:content-language:subject:user-agent:mime-version:date:message-id
:from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=PuHjD8PLySFiGhp+X8dLrwhHdQ9sR5fhVs6346tdr70=;
b=DzJ+fh50pqzebtO0MIuZs6snAl2M1xaX8W6tGLYNbyqTkBcPRQzjDNrUmRWWysfDPc
/Q+QXsIIzIJix+1CX5ttaaWvzdSL/5sTDfGVIq0j4nAifEd6lbgAIC8Wj5UlEiWRpunv
/wFNXvn4eEh0JXKnp+RlYjGUyBSRvwWXtKQrDvCm1MkTZUtt2ISqprfquR99vdvSkzAm
4BlXl6o4c/wpHiXCmAWlDQjbheSYhsOd4/Qw0neubyPgzbhbWYSeVS4qNyzwOv2ldukF
fRDL6o9ePiPKUIlcRV/VG4cMdYp671Sm9gmizUfVG1gASl9RpMV1dUM7bQNdGNCyaM5y
PRdA==
X-Gm-Message-State: AOJu0YxxUhFm5ChSO5P2nRGqd9r835ofNCz4WNEhx7M0SkSVmgv/ARI5
fcBh1HLz9mj/kw4VukKXYkiJl83ml8wNAA==
X-Google-Smtp-Source: AGHT+IEguHd9AD4EsFLD9DRdxCFEYCnaaEYX+T/jY6NXqAXL/B0l6aPtV+WiySzaqUbSnnjxXj3reQ==
X-Received: by 2002:adf:f649:0:b0:336:8102:1668 with SMTP id
x9-20020adff649000000b0033681021668mr3197670wrp.137.1703533983960;
Mon, 25 Dec 2023 11:53:03 -0800 (PST)
X-Google-Original-From: Alan Gauld <alan.gauld@yahoo.co.uk>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0)
Gecko/20100101 Thunderbird/102.12.0
Content-Language: en-GB
In-Reply-To: <d0d92e90-26bf-4b65-b634-cce452061312n@googlegroups.com>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <fe20a520-acd7-2f8b-df80-09a71031b2a0@yahoo.co.uk>
X-Mailman-Original-References: <n8f2ol$fis$1@dont-email.me>
<d0d92e90-26bf-4b65-b634-cce452061312n@googlegroups.com>
 by: Alan Gauld - Mon, 25 Dec 2023 19:53 UTC

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

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

<mailman.58.1703535992.2892.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=24699&group=comp.lang.python#24699

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: cgrace.c...@gmail.com (Chris Grace)
Newsgroups: comp.lang.python
Subject: Re: >>> %matplotlib inline results in SyntaxError: invalid syntax
Date: Mon, 25 Dec 2023 15:26:19 -0500
Lines: 52
Message-ID: <mailman.58.1703535992.2892.python-list@python.org>
References: <n8f2ol$fis$1@dont-email.me>
<d0d92e90-26bf-4b65-b634-cce452061312n@googlegroups.com>
<fe20a520-acd7-2f8b-df80-09a71031b2a0@yahoo.co.uk>
<CA+vPKvmYDMg-YSfsLnBejK6+td7XDK+EXWd-0exx9Z4as+4Bow@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Trace: news.uni-berlin.de omh58cFLd1P8Xf1GhRDHtgxU1BUyPQ9MqiOPvXkfURMw==
Cancel-Lock: sha1:4rqgJGg4DNDQkt22Y3rUOp4X3lc= sha256:ZhW3HC7Z4aDiaNv+BCL/aBZIjCxQA60sZta4A2KXgtI=
Return-Path: <cgrace.chris@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=DY+LJMMS;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'pip': 0.04; 'random':
0.05; 'assumes': 0.07; 'matplotlib': 0.07; 'string': 0.07;
'python.': 0.08; 'cc:addr:python-list': 0.09; 'email
addr:python.org>': 0.09; 'idle': 0.09; 'numpy': 0.09; 'pandas':
0.09; 'plots': 0.09; 'tutorial': 0.12; 'cc:no real name:2**0':
0.14; 'import': 0.15; 'url:mailman': 0.15; '3.4': 0.16; '`python':
0.16; 'command.': 0.16; 'examination': 0.16; 'flickr': 0.16;
'gauld': 0.16; 'idle.': 0.16; 'installed.': 0.16; 'ipython': 0.16;
'jupyter': 0.16; 'kernel.': 0.16; 'notebook': 0.16; 'photo-blog':
0.16; 'render': 0.16; 'see\xc2\xa0': 0.16; 'subject:syntax': 0.16;
'url-ip:79.170.44.132/32': 0.16; 'url-ip:79.170.44/24': 0.16;
'url-ip:79.170/16': 0.16; 'url-ip:79/8': 0.16; 'url:alan-g': 0.16;
'url:alan_gauld': 0.16; 'url:alangauldphotos': 0.16; 'url:latest':
0.16; 'written.': 0.16; 'wrote:': 0.16; 'python': 0.16; 'reached':
0.17; "can't": 0.17; 'url:amazon': 0.19; 'cc:addr:python.org':
0.20; 'science': 0.22; 'version': 0.23; 'install': 0.23; 'code':
0.23; 'cc:2**1': 0.23; 'command': 0.23; 'run': 0.23; "i'd": 0.24;
'url-ip:188.166.95.178/32': 0.25; 'url-ip:188.166.95/24': 0.25;
'url:listinfo': 0.25; 'url-ip:188.166/16': 0.25; 'email
addr:python.org&gt;': 0.28; 'suggest': 0.28; 'error': 0.29;
'packages': 0.31; 'dec': 0.31; 'url-ip:188/8': 0.31; 'program':
0.31; "doesn't": 0.32; 'python-list': 0.32; 'message-
id:@mail.gmail.com': 0.32; 'but': 0.32; 'mean': 0.34; 'header:In-
Reply-To:1': 0.34; 'received:google.com': 0.34; 'running': 0.34;
'officially': 0.35; 'url-ip:104.17/16': 0.35;
'from:addr:gmail.com': 0.35; 'mon,': 0.36; 'work,': 0.36;
'necessarily': 0.37; 'using': 0.37; 'author': 0.37; 'read': 0.38;
'changes': 0.39; 'alan': 0.40; 'learn': 0.40; 'try': 0.40;
'experienced': 0.61; 'inline': 0.61; '25,': 0.62; 'follow': 0.62;
'ago.': 0.64; 'url:a': 0.64; 'years': 0.65; 'url-ip:104.18/16':
0.67; 'url:index': 0.68; 'url:author': 0.69; 'site': 0.70; 'url-
ip:lookup error': 0.70; 'longer': 0.71; "you'll": 0.73; 'article':
0.73; 'formatting': 0.76; 'life': 0.77; '1st': 0.78; 'email
name:&lt;python-list': 0.84; 'homes': 0.84; 'subject:results':
0.84; 'magic': 0.93
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1703535990; x=1704140790; darn=python.org;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:from:to:cc:subject:date:message-id:reply-to;
bh=eVaL3tkkkXGTGALLh9p32moLJXauMGdkGcrT5+mypdk=;
b=DY+LJMMSPvdbYBRBMUP8Hn1R4dOgFdmQpizpMkzmbw7GqBmc7hPmWdzXtUYQ+g59Wq
XFvyoKyy/h9sFrXpgiY4jXgd2nWqxxtFS9QnGm36oCp3O+ePoyr5DEHk90daUQIQD+81
9rJXVK5MFBrGs1HFnpH2Ex5JfK3xEvOP2NFtJ8iYOv/5Chwv4eBgrewGWfXpQmqcNbpx
Y3DgZ1IPFVVIET8pwVQTCCWqjFLkWR+CDzpGQKmxj6p5BBfKMv/sfANX4nqktWQwWfTL
WTArM/ItfOLw5nP09LGk2le+m6RlhBkWByUo0287+XE0f8dRwpqTrdYtAr1ttHrwhDrK
YeBA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1703535990; x=1704140790;
h=cc:to:subject:message-id:date:from:in-reply-to:references
:mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=eVaL3tkkkXGTGALLh9p32moLJXauMGdkGcrT5+mypdk=;
b=jCqnhM1mPYhmDRTVDWkayxjZNgJX7iAm57QJhe+KVk4cKiqXvwIegujEFOmPABh7Ii
mjuOOJBJVsEA/BQRvEBdiBiBULsMtl48Tr3dC9JvTRdQ0cDoxAISAQls4RVXWMvBhsfY
0Xc524fJ3Vpacip+lypxUBoIkaZ9BadlogoP00/ETcccWDJucMLC5+WyB9mUiJUxnl4V
2OPfJY2ZhMKBRIu4btEaJiQWKAzjx/LLV1WAlPNXMBrYeZmGWo+p4bjXzfegYKXfn7Rj
BUir/u4YMNAkkobXNa8hAwGhxIsRIP63/bglvpZaVw3KFpK6fOUa7Hms47V2Cw6I/uZU
NfBQ==
X-Gm-Message-State: AOJu0YzwuAEr4O2BuSiI+zV0Bk/OBNGFOeUripm2XL7RW6cVcwiUM62o
VA9ULZKHn3I3VDVfMBDD78ho943LEPCywb0j2pM=
X-Google-Smtp-Source: AGHT+IHXl3Dco4Ang49hhkPiMnrvqpPY4iBATKCpMPHOAJn5yCLgcurDVd8bW/4eC+8qOq2XC976C9g4dn/EcU2EoYQ=
X-Received: by 2002:a0d:d708:0:b0:5e9:4438:4f56 with SMTP id
z8-20020a0dd708000000b005e944384f56mr3378626ywd.20.1703535989758; Mon, 25 Dec
2023 12:26:29 -0800 (PST)
In-Reply-To: <fe20a520-acd7-2f8b-df80-09a71031b2a0@yahoo.co.uk>
X-Content-Filtered-By: Mailman/MimeDel 2.1.39
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <CA+vPKvmYDMg-YSfsLnBejK6+td7XDK+EXWd-0exx9Z4as+4Bow@mail.gmail.com>
X-Mailman-Original-References: <n8f2ol$fis$1@dont-email.me>
<d0d92e90-26bf-4b65-b634-cce452061312n@googlegroups.com>
<fe20a520-acd7-2f8b-df80-09a71031b2a0@yahoo.co.uk>
 by: Chris Grace - Mon, 25 Dec 2023 20:26 UTC

"%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
>

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

<mailman.59.1703536368.2892.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=24700&group=comp.lang.python#24700

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: ros...@gmail.com (Chris Angelico)
Newsgroups: comp.lang.python
Subject: Re: >>> %matplotlib inline results in SyntaxError: invalid syntax
Date: Tue, 26 Dec 2023 07:32:33 +1100
Lines: 11
Message-ID: <mailman.59.1703536368.2892.python-list@python.org>
References: <n8f2ol$fis$1@dont-email.me>
<d0d92e90-26bf-4b65-b634-cce452061312n@googlegroups.com>
<fe20a520-acd7-2f8b-df80-09a71031b2a0@yahoo.co.uk>
<CA+vPKvmYDMg-YSfsLnBejK6+td7XDK+EXWd-0exx9Z4as+4Bow@mail.gmail.com>
<CAPTjJmorq+5vqt3JFc==isv1UF-BOKEMjnKeEDSH5TMELOuqaA@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de rnKCI70fzFRe038JjFKmcwGauWf/W/maOedRBy4px/Qg==
Cancel-Lock: sha1:zIGfFvVjDvesh6F1L11q0QHfNgU= sha256:xUSUjZukcWYaPkhQTRm7TOzcPnq3s1zUS9CoqTrk7jY=
Return-Path: <rosuav@gmail.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=gmail.com header.i=@gmail.com header.b=MuURs9eJ;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.023
X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'thread': 0.05; '2023':
0.07; 'python.': 0.08; '2016.': 0.16; '3.4': 0.16; 'chrisa': 0.16;
'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16;
'received:mail-lf1-x131.google.com': 0.16; 'subject:syntax': 0.16;
'wrote:': 0.16; 'python': 0.16; 'reached': 0.17; 'tue,': 0.19;
'to:addr:python-list': 0.20; 'version': 0.23; "i'd": 0.24;
'chris': 0.28; 'dec': 0.31; 'putting': 0.31; 'think': 0.32;
'answers': 0.32; 'python-list': 0.32; 'message-
id:@mail.gmail.com': 0.32; 'header:In-Reply-To:1': 0.34;
'received:google.com': 0.34; 'from:addr:gmail.com': 0.35; 'still':
0.40; 'here.': 0.61; 'ago.': 0.64; 'finished': 0.64; 'years':
0.65; 'now,': 0.67; 'back': 0.67; 'grace': 0.69; 'waiting': 0.73;
'life': 0.77; 'subject:results': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1703536365; x=1704141165; darn=python.org;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:from:to:cc:subject:date:message-id:reply-to;
bh=jobHsBbprlI6l6qBsSq0AGW1Ju3Jhm50OXJDikRsg+I=;
b=MuURs9eJbnOXAgraC7cTzDaj/YaKcDnnNCI5St01APfxoRWvDA8iKVQhXlFA4CSu8+
JOhRXAbKiA5b/AkeTFNqPY0rSLYwRhakJQKgmDY6ZTFO147ZuahfR1UPV3c4X6m6lrJC
kK1oyOtE4UlIX5lyGMqvDhQaA/JftkQg1xvxO8bGSdsxxQcuJ7CAKtzxgWJHosSltY/U
OPlud7WUJ53vRa2glLBRkVn/58TTC71ejgHV+dNRMELmPxmS7kYtA7kOY+z3Unc9vi8v
4u+ZeNR42ibeXSDEDx6Fb240XS96+yJPtOKwg1v3ZqlwMkYZyrTQP0GDd5bksYAoOpmX
Mggg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1703536365; x=1704141165;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=jobHsBbprlI6l6qBsSq0AGW1Ju3Jhm50OXJDikRsg+I=;
b=XG1PlcTwaawWQTKuLQPK52ItEa6U77hwN82mbqBeN/cYwDzNRdNfoJi/gP2uZ5r5H1
5pKVgyVNvFHabd81rtq2ZMG2ARSQoBZdi6rxYQ1ii9/SPkvgKBkRhzCRzJTzzFRIPPAe
OBgvGyWCMhDkvs2/OlxjR6RzM/V9K7gocLReZObqRgD+eP5oxK3r37Re328ObTp8oZcZ
yjDaleAt06hBCXT9eGTGoSHGuPyBT2Hqyn7pVhKAXnmmpnTggNL832kQBNzW0dtZXMeL
zmO+lUjPylNEJeys98qWBiCpY0kL6Utqoky6YhHDhwXa+E8iTblQY8rIsk53YTB5CuVD
nZMQ==
X-Gm-Message-State: AOJu0YyFxBxuUcOLrJJLs+57dGA/DXpQsPpVC8tbfQ0uGRzEGwPhsSYG
X+nn4IRDGfaIqGOg4vv5mZ9QcpLtoETWagtBM3rVe4Rx
X-Google-Smtp-Source: AGHT+IFRj8YL8OEC4JkHJFdNypqcgrIRganrC/6gh8lp+NKIPIkooWY9EygTSTP6usj5io6xORhMe4ZIbY6tJ+amhwc=
X-Received: by 2002:a19:750c:0:b0:50e:7c70:fbe9 with SMTP id
y12-20020a19750c000000b0050e7c70fbe9mr176988lfe.150.1703536364994; Mon, 25
Dec 2023 12:32:44 -0800 (PST)
In-Reply-To: <CA+vPKvmYDMg-YSfsLnBejK6+td7XDK+EXWd-0exx9Z4as+4Bow@mail.gmail.com>
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <CAPTjJmorq+5vqt3JFc==isv1UF-BOKEMjnKeEDSH5TMELOuqaA@mail.gmail.com>
X-Mailman-Original-References: <n8f2ol$fis$1@dont-email.me>
<d0d92e90-26bf-4b65-b634-cce452061312n@googlegroups.com>
<fe20a520-acd7-2f8b-df80-09a71031b2a0@yahoo.co.uk>
<CA+vPKvmYDMg-YSfsLnBejK6+td7XDK+EXWd-0exx9Z4as+4Bow@mail.gmail.com>
 by: Chris Angelico - Mon, 25 Dec 2023 20:32 UTC

On Tue, 26 Dec 2023 at 07:27, Chris Grace via Python-list
<python-list@python.org> wrote:
> I'd also recommend a newer version of python. Python 3.4 reached end of
> life almost 5 years ago.

Uhh, putting this in perspective... until a spammer revived the thread
just now, it was asked, answered, and finished with, all back in 2016.

I don't think anyone's still waiting on answers here.

ChrisA

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

<mailman.60.1703537095.2892.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=24701&group=comp.lang.python#24701

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: pyt...@mrabarnett.plus.com (MRAB)
Newsgroups: comp.lang.python
Subject: Re: >>> %matplotlib inline results in SyntaxError: invalid syntax
Date: Mon, 25 Dec 2023 20:41:47 +0000
Lines: 19
Message-ID: <mailman.60.1703537095.2892.python-list@python.org>
References: <n8f2ol$fis$1@dont-email.me>
<d0d92e90-26bf-4b65-b634-cce452061312n@googlegroups.com>
<fe20a520-acd7-2f8b-df80-09a71031b2a0@yahoo.co.uk>
<7a495321-2946-4df1-a30d-ff1396c1bfa1@mrabarnett.plus.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de 8EnETBE4e5l2TugQN1p+rwvtZvYgcsITexrTSbMrzoUg==
Cancel-Lock: sha1:Uz9uDy5W7kvdTFpia1+/OjR1kDw= sha256:huNNSmYM23AccNFMfj82VUkQBnnp5qQ7GWigCy8c3qE=
Return-Path: <python@mrabarnett.plus.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=plus.com header.i=@plus.com header.b=YBe0rmrs;
dkim-adsp=none (unprotected policy); dkim-atps=neutral
X-Spam-Status: OK 0.000
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'random': 0.05;
'matplotlib': 0.07; 'string': 0.07; 'from:addr:python': 0.09;
'idle': 0.09; 'numpy': 0.09; 'pandas': 0.09;
'received:192.168.1.64': 0.09; 'tutorial': 0.12; 'import': 0.15;
'examination': 0.16; 'from:addr:mrabarnett.plus.com': 0.16;
'from:name:mrab': 0.16; 'gauld': 0.16; 'idle.': 0.16; 'jupyter':
0.16; 'message-id:@mrabarnett.plus.com': 0.16;
'received:plus.net': 0.16; 'subject:syntax': 0.16; 'wrote:': 0.16;
'python': 0.16; "can't": 0.17; 'to:addr:python-list': 0.20;
'code': 0.23; '>>>': 0.28; 'suggest': 0.28; 'error': 0.29; 'header
:User-Agent:1': 0.30; 'python-list': 0.32; 'received:192.168.1':
0.32; 'header:In-Reply-To:1': 0.34; 'running': 0.34; "it's": 0.37;
'received:192.168': 0.37; 'alan': 0.40; 'inline': 0.61;
'received:212': 0.62; 'formatting': 0.76; 'homes': 0.84;
'subject:results': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=plus.com; s=042019;
t=1703536908; bh=CgPaENf1/U1W/a5iWKYYwVi/5bAbNV5/KiVTt/sXPbI=;
h=Date:Subject:To:References:From:In-Reply-To;
b=YBe0rmrs8Fg6V9vbi1/0peracHtLf65YILWD+e7kj75dt03fPlKhLWiC5o2Nb1ucW
3HtThGvn7NkWsTjM7RxfG2OsnlXtmwV3NywKiyyVZU8jx5MSqyWezJUidWxd12trZi
nZkUaf4hFykeMg8T85t8GNmVSSesyOL3EfLcQftwEMmHF7hv5ckTk2ZDLcOn3pLlOp
NSDYqERfi7cj4PmPq5SkKlvUP8+0S5WtmjUPH4fRHA6DhX9GkCALWMog+yzwK+tApl
XOg8vDnzw6XCoGTKIJOIpMqd1rE1L8GbVcezfVAi9WzaYsabyFauqZ6AsXXR8cN/qF
EF6KI8O3wtmZw==
X-Clacks-Overhead: "GNU Terry Pratchett"
X-CM-Score: 0.00
X-CNFS-Analysis: v=2.4 cv=C/z6dCD+ c=1 sm=1 tr=0 ts=6589e90c
a=0nF1XD0wxitMEM03M9B4ZQ==:117 a=0nF1XD0wxitMEM03M9B4ZQ==:17
a=IkcTkHD0fZMA:10 a=w6KkNR6wKptYzOt4F_EA:9 a=QEXdDO2ut3YA:10
X-AUTH: mrabarnett@:2500
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
In-Reply-To: <fe20a520-acd7-2f8b-df80-09a71031b2a0@yahoo.co.uk>
X-CMAE-Envelope: MS4xfBzOr8ZL9p74c9z3vdY2Tw0FVI9GHaviI2PRj6O2V3jSO+VP4NGq6oQYFWjdZI9P0jg4WGPDLxZPLxHjBGQ+pVQ62Th4o9EBiZ4eQzzc8O1hEfBuNxnC
Jxtr+C68mcGwCWPurL51973glGsrYdcI+7P/+WaRZL2XclSM9Ar1kde6F2QGr97aU6V2LRzFAzkiOWzShoF3AkbGMW1sppggRas=
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <7a495321-2946-4df1-a30d-ff1396c1bfa1@mrabarnett.plus.com>
X-Mailman-Original-References: <n8f2ol$fis$1@dont-email.me>
<d0d92e90-26bf-4b65-b634-cce452061312n@googlegroups.com>
<fe20a520-acd7-2f8b-df80-09a71031b2a0@yahoo.co.uk>
 by: MRAB - Mon, 25 Dec 2023 20:41 UTC

On 2023-12-25 19:53, Alan Gauld via Python-list 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.
>
I believe it's a feature of Jupyter specifically. It won't work in IDLE.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor