Re: built-in pow() vs. math.pow()

2023-03-30 Thread Chris Angelico
On Fri, 31 Mar 2023 at 08:13, Oscar Benjamin  wrote:
>
> On Thu, 30 Mar 2023 at 17:31, Andreas Eisele  wrote:
> >
> > I sometimes make use of the fact that the built-in pow() function has an 
> > optional third argument for modulo calculation, which is handy when dealing 
> > with tasks from number theory, very large numbers, problems from Project 
> > Euler, etc. I was unpleasantly surprised that math.pow() does not have this 
> > feature, hence "from math import *" overwrites the built-in pow() function 
> > with a function that lacks functionality. I am wondering for the rationale 
> > of this. Does math.pow() do anything that the built-in version can not do, 
> > and if not, why is it even there?
>
> It is useful for when you want the pure floating point power which has
> an approximately fixed computational cost (unlike integer powers).
> Perhaps it would have been better if it was named fpow similar to fsum
> vs sum.
>

It's called math.pow. That on its own should be a strong indication
that it's designed to work with floats.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: built-in pow() vs. math.pow()

2023-03-30 Thread Oscar Benjamin
On Thu, 30 Mar 2023 at 17:31, Andreas Eisele  wrote:
>
> I sometimes make use of the fact that the built-in pow() function has an 
> optional third argument for modulo calculation, which is handy when dealing 
> with tasks from number theory, very large numbers, problems from Project 
> Euler, etc. I was unpleasantly surprised that math.pow() does not have this 
> feature, hence "from math import *" overwrites the built-in pow() function 
> with a function that lacks functionality. I am wondering for the rationale of 
> this. Does math.pow() do anything that the built-in version can not do, and 
> if not, why is it even there?

It is useful for when you want the pure floating point power which has
an approximately fixed computational cost (unlike integer powers).
Perhaps it would have been better if it was named fpow similar to fsum
vs sum.

--
Oscar
-- 
https://mail.python.org/mailman/listinfo/python-list


RE: built-in pow() vs. math.pow()

2023-03-30 Thread avi.e.gross
Some questions are more reasonable than others.

If the version of a function used in a package were IDENTICAL to the
built-in, then why have it?

There are many possible reasons a package may tune a function for their own
preferences or re-use a name that ends up blocking the view of another name.

The bottom line is if you do not want the other one, then don't ask for it
by not importing the entire module into your namespace or by explicitly
asking for the base function in the ways python provides.

Others have replied about differences in various implementations of pow()
and reiterated my point above that if you want a specific function instance,
it is your responsibility to make sure you get it.

One method I would mention that I have not seen is to copy pow() to your own
name before importing other things. Something like:

pow3 = pow
import ...

Then use the new name.

Or import all of math (despite advice not to) and then make pow3 a synonym
for the base version.

Most people most of the time will want a small and fast function that does
what they asked for and does not waste time looking for an optional third
argument and doing something additional. Would you be satisfied if
math::pow() simply checked for a third argument and turned around and called
base::pow() to handle it?

A deeper question I can appreciate is wondering if it is a bug or feature
that python (and many other languages) allow results where you can hide a
variable or function name. I call it a feature. As with all such variables,
scope rules and other such things apply and make the language powerful and
sometimes a tad dangerous.



-Original Message-
From: Python-list  On
Behalf Of Andreas Eisele
Sent: Thursday, March 30, 2023 5:16 AM
To: python-list@python.org
Subject: built-in pow() vs. math.pow()

I sometimes make use of the fact that the built-in pow() function has an
optional third argument for modulo calculation, which is handy when dealing
with tasks from number theory, very large numbers, problems from Project
Euler, etc. I was unpleasantly surprised that math.pow() does not have this
feature, hence "from math import *" overwrites the built-in pow() function
with a function that lacks functionality. I am wondering for the rationale
of this. Does math.pow() do anything that the built-in version can not do,
and if not, why is it even there?
Thanks in advance for any enlightening comment on this.
Best regards, Andreas
-- 
https://mail.python.org/mailman/listinfo/python-list

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: built-in pow() vs. math.pow()

2023-03-30 Thread Dennis Lee Bieber
On Thu, 30 Mar 2023 19:22:53 +0200, Roel Schroeven 
declaimed the following:

>Either import the things you need explicitly: "from math import sin, 
>cos, exp" (for example).
>Or a plain import: "import math" combined with "math.sin", "math.cos".
>Or use an abbreviation: "import math as m" combined with "m.sin", "m.cos".

Or, for this particular example of not wanting math.pow...

>>> from math import *
>>> pow(3, 4)
81.0
>>> del pow
>>> pow(3, 4)
81
>>> 
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: built-in pow() vs. math.pow()

2023-03-30 Thread Grant Edwards
On 2023-03-30, Thomas Passin  wrote:
> On 3/30/2023 5:15 AM, Andreas Eisele wrote:

>> [...] I was unpleasantly surprised that math.pow() does not have
>> this feature, hence "from math import *" overwrites the built-in
>> pow() function with a function that lacks functionality. [...]
>
> Not an answer to your question, but it's better not to use "import *".
> It's usually better to import just the names you actually need.

Or to imporot math and then use math.pow().

Unfortunately, the official Python documentation always seems to
assume you do "from  import *". I think that leads people to
believe it's a good practice when, in fact, it's a frequent source of
trouble as the OP found out.

-- 
Grant


-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python not showing correct version

2023-03-30 Thread Thomas Passin

On 3/30/2023 10:17 AM, Sumeet Firodia wrote:


Hi Team,

I have installed Python 3.8 for Snowpark but when I check the version in
command prompt it shows me Python 3.10.10.

C:\Users\admin>python --version
Python 3.10.10

Also when I try to uninstall 3.10 it says no such version is installed.

C:\Users\admin>pip uninstall python 3.10.10
WARNING: Skipping python as it is not installed.
WARNING: Skipping 3.10.10 as it is not installed.

Can you please help me here as my snowpark assignment is stuck because of
this issue.


You cannot uninstall Python using pip.  It was not installed using it.

You probably should not uninstall Python 3.10.10. There are two 
possibilities:


1. The Snowpack programs will work with Python 3.10.  Just run them with 
"python". This is likely. I notice that its location is unusual, and I 
wonder how and why it got installed there.


2. For some reason, you have to use the Python 3.8 installation. Either 
find out where it is located on your system, and create a batch file to 
run it - you could name it "py38" and type "py38" instead of "python". 
Or you may be able to use the "py" launcher.  It will be there if Python 
was installed using the ordinary Python installer from python.org.  You 
would type "py -38" instead of "python".


--
https://mail.python.org/mailman/listinfo/python-list


Re: built-in pow() vs. math.pow()

2023-03-30 Thread Thomas Passin

On 3/30/2023 5:15 AM, Andreas Eisele wrote:

I sometimes make use of the fact that the built-in pow() function has an optional third 
argument for modulo calculation, which is handy when dealing with tasks from number 
theory, very large numbers, problems from Project Euler, etc. I was unpleasantly 
surprised that math.pow() does not have this feature, hence "from math import 
*" overwrites the built-in pow() function with a function that lacks functionality. 
I am wondering for the rationale of this. Does math.pow() do anything that the built-in 
version can not do, and if not, why is it even there?


Not an answer to your question, but it's better not to use "import *". 
It's usually better to import just the names you actually need.


--
https://mail.python.org/mailman/listinfo/python-list


Re: built-in pow() vs. math.pow()

2023-03-30 Thread Roel Schroeven

Andreas Eisele schreef op 30/03/2023 om 11:15:

I sometimes make use of the fact that the built-in pow() function has an optional third 
argument for modulo calculation, which is handy when dealing with tasks from number 
theory, very large numbers, problems from Project Euler, etc. I was unpleasantly 
surprised that math.pow() does not have this feature, hence "from math import 
*" overwrites the built-in pow() function with a function that lacks functionality. 
I am wondering for the rationale of this. Does math.pow() do anything that the built-in 
version can not do, and if not, why is it even there?
According to the docs, "Unlike the built-in ** operator, math.pow() 
converts both its arguments to type float. Use ** or the built-in pow() 
function for computing exact integer powers." I think that means that 
math.pow() is more meant to work with floats, while the built-in is more 
meant for integers (even though the built-in works with floats just fine).


In any case, I would strongly advocate against "from math import *" (not 
just for math but for any module really). One of the reasons is the 
potential for name conflicts, which is exactly what you experience here.


Either import the things you need explicitly: "from math import sin, 
cos, exp" (for example).

Or a plain import: "import math" combined with "math.sin", "math.cos".
Or use an abbreviation: "import math as m" combined with "m.sin", "m.cos".

--
"There is no cause so noble that it will not attract fuggheads."
-- Larry Niven

--
https://mail.python.org/mailman/listinfo/python-list


Re: built-in pow() vs. math.pow()

2023-03-30 Thread Barry Scott



> On 30 Mar 2023, at 18:11, Barry Scott  wrote:
> 
> 
> 
>> On 30 Mar 2023, at 10:15, Andreas Eisele  wrote:
>> 
>> I sometimes make use of the fact that the built-in pow() function has an 
>> optional third argument for modulo calculation, which is handy when dealing 
>> with tasks from number theory, very large numbers, problems from Project 
>> Euler, etc. I was unpleasantly surprised that math.pow() does not have this 
>> feature, hence "from math import *" overwrites the built-in pow() function 
>> with a function that lacks functionality. I am wondering for the rationale 
>> of this. Does math.pow() do anything that the built-in version can not do, 
>> and if not, why is it even there?
> 
> Maybe math.pow() aways using IEEE 754(?) float point via the C runtime math 
> routines.
> pow() will give int answer if called with int args.

And the C version of pow only supports 2 arg call.

SYNOPSIS
 #include 

 double
 pow(double x, double y);

 long double
 powl(long double x, long double y);

 float
 powf(float x, float y);


> 
> Barry
> 
> 
>> Thanks in advance for any enlightening comment on this.
>> Best regards, Andreas
>> -- 
>> https://mail.python.org/mailman/listinfo/python-list
>> 
> 
> -- 
> https://mail.python.org/mailman/listinfo/python-list
> 

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python not showing correct version

2023-03-30 Thread Barry Scott



> On 30 Mar 2023, at 15:17, Sumeet Firodia  wrote:
> 
>> 
>> Hi Team,
>> 
>> I have installed Python 3.8 for Snowpark but when I check the version in
>> command prompt it shows me Python 3.10.10.
>> 
>> C:\Users\admin>python --version
>> Python 3.10.10

Try this:

py -3.8

And this to list all version of python installed:

py -0


>> 
>> Also when I try to uninstall 3.10 it says no such version is installed.
>> 
>> C:\Users\admin>pip uninstall python 3.10.10
>> WARNING: Skipping python as it is not installed.
>> WARNING: Skipping 3.10.10 as it is not installed.

PIP is for installing python modules not the python program.
The python program is installed by running the .exe that you get from 
python.org , for example.
Use the standard Windows method to uninstall a program.
Search the web for "windows uninstall software" if you are not sure how to do 
this.

Barry

>> 
>> Can you please help me here as my snowpark assignment is stuck because of
>> this issue.
>> 
>> Thanks
>> Sumeet
>> 
>> 
> -- 
> https://mail.python.org/mailman/listinfo/python-list
> 

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: built-in pow() vs. math.pow()

2023-03-30 Thread Barry Scott



> On 30 Mar 2023, at 10:15, Andreas Eisele  wrote:
> 
> I sometimes make use of the fact that the built-in pow() function has an 
> optional third argument for modulo calculation, which is handy when dealing 
> with tasks from number theory, very large numbers, problems from Project 
> Euler, etc. I was unpleasantly surprised that math.pow() does not have this 
> feature, hence "from math import *" overwrites the built-in pow() function 
> with a function that lacks functionality. I am wondering for the rationale of 
> this. Does math.pow() do anything that the built-in version can not do, and 
> if not, why is it even there?

Maybe math.pow() aways using IEEE 754(?) float point via the C runtime math 
routines.
pow() will give int answer if called with int args.

Barry


> Thanks in advance for any enlightening comment on this.
> Best regards, Andreas
> -- 
> https://mail.python.org/mailman/listinfo/python-list
> 

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to add clickable url links to 3D Matplotlib chart ?

2023-03-30 Thread a a
On Thursday, 30 March 2023 at 13:19:51 UTC+2, a a wrote:
> On Thursday, 30 March 2023 at 13:14:33 UTC+2, a a wrote: 
> > On Thursday, 30 March 2023 at 07:55:13 UTC+2, Christian Gollwitzer wrote: 
> > > Am 30.03.23 um 01:11 schrieb a a: 
> > > > On Wednesday, 29 March 2023 at 22:51:15 UTC+2, Greg Ewing wrote: 
> > > >> On 30/03/23 8:39 am, a a wrote: 
> > > >>> How to add clickable url links to the following 3D Matplotlib chart 
> > > >>> to make it knowledge representation 3D chart, make of 1,000+ open 
> > > >>> Tabs in Firefox ? 
> > > >> It seems that matplotlib can be made to generate SVG images with 
> > > >> hyperlinks in them: 
> > > >> 
> > > >> https://matplotlib.org/stable/gallery/misc/hyperlinks_sgskip.html 
> > > >> 
> > > >> -- 
> > > >> Greg 
> > > > thank you 
> > > > but I need mouse hover-on, mouse click events to be handled by a simple 
> > > > algorithm to calculate which ball/circle has been selected (in the 
> > > > Matplotlib 3D animated chart above) to make the selected ball to flash 
> > > > and have label opened made of url icon, name of url, followed by url 
> > > > (exactly what Firefox makes with Tabs) 
> > > > 
> > > > For knowledge representation, 1,000+ Tabs open in Firefox, earthquakes 
> > > > 3D live chart by Giuseppe is a nice tool. 
> > > > 
> > > > One axis can represent time (timeline), two other axis can represent 
> > > > features attributed to to opened Tabs, like frequency of visits, 
> > > > ranking. 
> > > > 
> > > > Ok, balls should overlayed with a respective url icon, as done in 
> > > > Firefox (Tabs row) : url icon + label's name abbreviated 
> > > It doesn't sound as if there is a "one-line" solution to this problem. 
> > > It sounds more like you want a video game engine to interact with a 3D 
> > > world. 
> > > 
> > > There used to be a 3D version of HTML, called VRML, with the successor 
> > > of X3D that could show such a thing in the browser, but I doubt that 
> > > there is easy support for it any more in recent browsers. Therefore it 
> > > would be difficult to post this to the internet, unless you invest in 
> > > some JS programming. In case you want to run this on your local 
> > > computer, as opposed to in the browser, you can check out Python game 
> > > engines. 
> > > 
> > > Christian 
> > VRML is to heavy for me 
> > 
> > -- 
> > 
> > 
> > http://mpld3.github.io/examples/index.html#example-gallery 
> > 
> > Matplotlib charts can be integrated into web browser / Javascript 
> > 
> > mpld3 — Bringing Matplotlib to the Browser 
> > mpld3.github.io 
> > 
> > mpld3 project brings together Matplotlib, the popular Python-based graphing 
> > library, and D3js, the popular JavaScript library for creating interactive 
> > 
> > Javascript can track mouse position, mouse events, so I can calculate 
> > which ball/circle is selected to modify hue and generate active label 
> > assigned to the ball and have url link in the label opened by 2 mouse 
> > clicks. 
> > 
> > WebGL is nice but heavy for my project 
> > https://webglsamples.org/ 
> > 
> > https://en.wikipedia.org/wiki/WebGL 
> > 
> > All I need is Javascript to get access to database rendering geolocated 
> > balls, charted by Matplolib 
> > to update input data for a given ball and have Matplotlib chart to refresh 
> > on mouse click/ mouse hover - on 
> > 
> > To get 3D space I need to geolocate 1,000+Tabs open in Firefox 
> > 
> > Website geolocation I can read from domain register/s 
> > 
> > I need to project spherical Earth's globo to the place to get X - Y axis 
> > 
> > 
> > As a newbie to Python, I am looking for an experienced coder.
> follow-up 
> 
> http://mpld3.github.io/examples/index.html#example-gallery 
> 
> I need to loop Matplotlib charts to get refreshed with new data inputs with 
> mouse events 
> (ball selection, selected ball new hue) 
> 
> Please keep in mind I need to open great Matplotlib charts by Giuseppe in web 
> browser 
> to serve as a knowledge representation and visualization for 1,000+ Tab open 
> in Firefox 
> 
> https://twitter.com/gmrpetricca/status/1633477532526817281

2D Matplotlib  solution for my project

http://mpld3.github.io/examples/html_tooltips.html

How to get it upgraded to 3D Matplotlib 
and get label to feature web link url assigned to a specified ball/ circle ?
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to add clickable url links to 3D Matplotlib chart ?

2023-03-30 Thread a a
On Thursday, 30 March 2023 at 13:14:33 UTC+2, a a wrote:
> On Thursday, 30 March 2023 at 07:55:13 UTC+2, Christian Gollwitzer wrote: 
> > Am 30.03.23 um 01:11 schrieb a a: 
> > > On Wednesday, 29 March 2023 at 22:51:15 UTC+2, Greg Ewing wrote: 
> > >> On 30/03/23 8:39 am, a a wrote: 
> > >>> How to add clickable url links to the following 3D Matplotlib chart to 
> > >>> make it knowledge representation 3D chart, make of 1,000+ open Tabs in 
> > >>> Firefox ? 
> > >> It seems that matplotlib can be made to generate SVG images with 
> > >> hyperlinks in them: 
> > >> 
> > >> https://matplotlib.org/stable/gallery/misc/hyperlinks_sgskip.html 
> > >> 
> > >> -- 
> > >> Greg 
> > > thank you 
> > > but I need mouse hover-on, mouse click events to be handled by a simple 
> > > algorithm to calculate which ball/circle has been selected (in the 
> > > Matplotlib 3D animated chart above) to make the selected ball to flash 
> > > and have label opened made of url icon, name of url, followed by url 
> > > (exactly what Firefox makes with Tabs) 
> > > 
> > > For knowledge representation, 1,000+ Tabs open in Firefox, earthquakes 3D 
> > > live chart by Giuseppe is a nice tool. 
> > > 
> > > One axis can represent time (timeline), two other axis can represent 
> > > features attributed to to opened Tabs, like frequency of visits, ranking. 
> > > 
> > > Ok, balls should overlayed with a respective url icon, as done in Firefox 
> > > (Tabs row) : url icon + label's name abbreviated 
> > It doesn't sound as if there is a "one-line" solution to this problem. 
> > It sounds more like you want a video game engine to interact with a 3D 
> > world. 
> > 
> > There used to be a 3D version of HTML, called VRML, with the successor 
> > of X3D that could show such a thing in the browser, but I doubt that 
> > there is easy support for it any more in recent browsers. Therefore it 
> > would be difficult to post this to the internet, unless you invest in 
> > some JS programming. In case you want to run this on your local 
> > computer, as opposed to in the browser, you can check out Python game 
> > engines. 
> > 
> > Christian
> VRML is to heavy for me 
> 
> -- 
> 
> 
> http://mpld3.github.io/examples/index.html#example-gallery 
> 
> Matplotlib charts can be integrated into web browser / Javascript 
> 
> mpld3 — Bringing Matplotlib to the Browser 
> mpld3.github.io 
> 
> mpld3 project brings together Matplotlib, the popular Python-based graphing 
> library, and D3js, the popular JavaScript library for creating interactive 
> 
> Javascript can track mouse position, mouse events, so I can calculate 
> which ball/circle is selected to modify hue and generate active label 
> assigned to the ball and have url link in the label opened by 2 mouse clicks. 
> 
> WebGL is nice but heavy for my project 
> https://webglsamples.org/ 
> 
> https://en.wikipedia.org/wiki/WebGL 
> 
> All I need is Javascript to get access to database rendering geolocated 
> balls, charted by Matplolib 
> to update input data for a given ball and have Matplotlib chart to refresh on 
> mouse click/ mouse hover - on 
> 
> To get 3D space I need to geolocate 1,000+Tabs open in Firefox 
> 
> Website geolocation I can read from domain register/s 
> 
> I need to project spherical Earth's globo to the place to get X - Y axis 
> 
> 
> As a newbie to Python, I am looking for an experienced coder.


follow-up

http://mpld3.github.io/examples/index.html#example-gallery

I need to loop Matplotlib charts to get refreshed with new data inputs with 
mouse events
(ball selection, selected ball new hue)

Please keep in mind I need to open great Matplotlib charts by Giuseppe in web 
browser 
to serve as a knowledge representation and visualization  for 1,000+ Tab  open 
in Firefox

https://twitter.com/gmrpetricca/status/1633477532526817281
-- 
https://mail.python.org/mailman/listinfo/python-list


built-in pow() vs. math.pow()

2023-03-30 Thread Andreas Eisele
I sometimes make use of the fact that the built-in pow() function has an 
optional third argument for modulo calculation, which is handy when dealing 
with tasks from number theory, very large numbers, problems from Project Euler, 
etc. I was unpleasantly surprised that math.pow() does not have this feature, 
hence "from math import *" overwrites the built-in pow() function with a 
function that lacks functionality. I am wondering for the rationale of this. 
Does math.pow() do anything that the built-in version can not do, and if not, 
why is it even there?
Thanks in advance for any enlightening comment on this.
Best regards, Andreas
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to add clickable url links to 3D Matplotlib chart ?

2023-03-30 Thread a a
On Thursday, 30 March 2023 at 07:55:13 UTC+2, Christian Gollwitzer wrote:
> Am 30.03.23 um 01:11 schrieb a a:
> > On Wednesday, 29 March 2023 at 22:51:15 UTC+2, Greg Ewing wrote: 
> >> On 30/03/23 8:39 am, a a wrote: 
> >>> How to add clickable url links to the following 3D Matplotlib chart to 
> >>> make it knowledge representation 3D chart, make of 1,000+ open Tabs in 
> >>> Firefox ? 
> >> It seems that matplotlib can be made to generate SVG images with 
> >> hyperlinks in them: 
> >> 
> >> https://matplotlib.org/stable/gallery/misc/hyperlinks_sgskip.html 
> >> 
> >> -- 
> >> Greg 
> > thank you 
> > but I need mouse hover-on, mouse click events to be handled by a simple 
> > algorithm to calculate which ball/circle has been selected (in the 
> > Matplotlib 3D animated chart above) to make the selected ball to flash and 
> > have label opened made of url icon, name of url, followed by url (exactly 
> > what Firefox makes with Tabs) 
> > 
> > For knowledge representation, 1,000+ Tabs open in Firefox, earthquakes 3D 
> > live chart by Giuseppe is a nice tool. 
> > 
> > One axis can represent time (timeline), two other axis can represent 
> > features attributed to to opened Tabs, like frequency of visits, ranking. 
> > 
> > Ok, balls should overlayed with a respective url icon, as done in Firefox 
> > (Tabs row) : url icon + label's name abbreviated
> It doesn't sound as if there is a "one-line" solution to this problem. 
> It sounds more like you want a video game engine to interact with a 3D 
> world. 
> 
> There used to be a 3D version of HTML, called VRML, with the successor 
> of X3D that could show such a thing in the browser, but I doubt that 
> there is easy support for it any more in recent browsers. Therefore it 
> would be difficult to post this to the internet, unless you invest in 
> some JS programming. In case you want to run this on your local 
> computer, as opposed to in the browser, you can check out Python game 
> engines. 
> 
> Christian
VRML is to heavy for me

--


http://mpld3.github.io/examples/index.html#example-gallery

Matplotlib charts can be integrated into web browser / Javascript

mpld3 — Bringing Matplotlib to the Browser
mpld3.github.io

 mpld3 project brings together Matplotlib, the popular Python-based graphing 
library, and D3js, the popular JavaScript library for creating interactive 
 
Javascript can track mouse position, mouse events, so I can calculate
which ball/circle is selected to modify hue and generate active label assigned 
to the ball and have url link in the label opened by 2 mouse clicks.

WebGL is nice but heavy for my project
https://webglsamples.org/

https://en.wikipedia.org/wiki/WebGL

All I need is Javascript to get access to database rendering geolocated balls, 
charted by Matplolib 
to update input data for a given ball and have Matplotlib chart to refresh on 
mouse click/ mouse hover - on

To get 3D space I need to geolocate 1,000+Tabs open in Firefox

Website geolocation I can read from domain register/s

I need to project spherical Earth's globo to the place to get X - Y axis


As a newbie to Python, I am looking for an experienced coder.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: How to add clickable url links to 3D Matplotlib chart ?

2023-03-30 Thread Christian Gollwitzer

Am 30.03.23 um 01:11 schrieb a a:

On Wednesday, 29 March 2023 at 22:51:15 UTC+2, Greg Ewing wrote:

On 30/03/23 8:39 am, a a wrote:

How to add clickable url links to the following 3D Matplotlib chart to make it 
knowledge representation 3D chart, make of 1,000+ open Tabs in Firefox ?

It seems that matplotlib can be made to generate SVG images with
hyperlinks in them:

https://matplotlib.org/stable/gallery/misc/hyperlinks_sgskip.html

--
Greg

thank you
but I need mouse hover-on, mouse click events to be handled by a simple 
algorithm to calculate which ball/circle has been selected (in the Matplotlib 
3D animated chart above) to make the selected ball to flash and have label 
opened made of url icon, name of url, followed by url (exactly what Firefox 
makes with Tabs)

For knowledge representation, 1,000+  Tabs open in Firefox,  earthquakes 3D 
live chart by Giuseppe is a nice tool.

One axis can represent time (timeline), two other axis can represent features 
attributed to to opened Tabs, like frequency of visits, ranking.

Ok, balls should overlayed with a respective url icon, as done in Firefox (Tabs 
row) : url icon + label's name abbreviated



It doesn't sound as if there is a "one-line" solution to this problem. 
It sounds more like you want a video game engine to interact with a 3D 
world.


There used to be a 3D version of HTML, called VRML, with the successor 
of X3D that could show such a thing in the browser, but I doubt that 
there is easy support for it any more in recent browsers. Therefore it 
would be difficult to post this to the internet, unless you invest in 
some JS programming. In case you want to run this on your local 
computer, as opposed to in the browser, you can check out Python game 
engines.


Christian
--
https://mail.python.org/mailman/listinfo/python-list


Re: Python file location

2023-03-30 Thread Loris Bennett
windhorn  writes:

> I have an older laptop I use for programming, particularly Python and
> Octave, running a variety of Debian Linux, and I am curious if there
> is a "standard" place in the file system to store this type of program
> file. OK, I know they should go in a repository and be managed by an
> IDE but this seems like way overkill for the kind of programming that
> I do, normally a single file. Any suggestions welcome, thanks.

How about /usr/local/bin?  That should already be included in $PATH.

Cheers,

Loris

-- 
This signature is currently under constuction.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python not showing correct version

2023-03-30 Thread Sumeet Firodia
>
> Hi Team,
>
> I have installed Python 3.8 for Snowpark but when I check the version in
> command prompt it shows me Python 3.10.10.
>
> C:\Users\admin>python --version
> Python 3.10.10
>
> Also when I try to uninstall 3.10 it says no such version is installed.
>
> C:\Users\admin>pip uninstall python 3.10.10
> WARNING: Skipping python as it is not installed.
> WARNING: Skipping 3.10.10 as it is not installed.
>
> Can you please help me here as my snowpark assignment is stuck because of
> this issue.
>
> Thanks
> Sumeet
>
>
-- 
https://mail.python.org/mailman/listinfo/python-list