From cbc at unc.edu Wed Jan 2 10:46:00 2019 From: cbc at unc.edu (Calloway, Chris) Date: Wed, 2 Jan 2019 15:46:00 +0000 Subject: [TriPython] PyTennessee Message-ID: Passing along a 20% discount from PyTennessee. Only $80 to attend this really great regional Python conference... Hi! My name is Bill Israel and I'm the Chair for PyTennessee 2019. I wanted to reach out to make sure our NC-based Python "family" was aware of PyTN 2019 and got a little "friends and family" discount sent their way. Please forward the following info to your group, or disseminate this info however you see fit. We would love to see some North Carolina representation at PyTN! PyTennessee 2019 will be held on February 9-10 in Nashville, TN. We have a great list of speakers, a couple of very exciting keynotes, and a killer hallway track. There's more information and easy registration links at https://www.pytennessee.org/ , if anyone needs more convincing. And since we're all big Southeast Python family, we're offering a 20% discount to the first 10 of your members who use the following link: https://www.eventbrite.com/e/pytennessee-2019-tickets-50024781468?discount=TrianglePython2019 . If anyone has any issues with the link, or just has questions about the conference, please don't hesitate to reach out to me (chair at pytennessee.org).? Hope everyone had a great holiday and isn't working too hard between Christmas and New Years! - Bill -- Bill Israel Chair, PyTennessee 2019 chair at pytennessee.o?rg -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute (919) 599-3530 ?On 12/18/18, 3:15 PM, "TriZPUG on behalf of Calloway, Chris" wrote: PyTennessee is coming up soon, Feb 9-10: https://www.pytennessee.org/ Let us know if you are going. Last year was good. -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute (919) 599-3530 From cbc at unc.edu Fri Jan 4 16:27:59 2019 From: cbc at unc.edu (Calloway, Chris) Date: Fri, 4 Jan 2019 21:27:59 +0000 Subject: [TriPython] TriPython January 2019 Meeting: Python Testing With PyTest Message-ID: http://tripython.org/Members/cbc/jan-19-mtg Tim Hopper will school us on PyTest. When: Thursday January 24, 7-9pm Where: Renaissance Computing Institute (RENCI), Biltmore Conference Room, 5th Floor, 100 Europa Drive, Suite 590, Chapel Hill What: Tim Hopper will present PyTest. Tim says, "In this talk, I will introduce Pytest, a testing framework for Python (e.g. an alternative to unittest or Nose. Pytest is simple enough to allow you to start writing tests with zero boiler plate, but grows with your project into a powerful solution for even the most complex software projects." Tim Hopper is a senior data scientist at Cylance where he works on machine learning approaches to malware detection. Prior to Cylance, he worked in blocking malicious automated web traffic and developing a Python library for nonparametric Latent Dirichlet Allocation. He has a masters degree in operations research from North Carolina State University. He lives in Raleigh with his wife and energetic 1 year old. Extemporaneous "lightning talks" of 5-10 minute duration are also welcome and don't need to be pre-announced. Lightning talks are for you to "show and tell" something you've learned about Python recently, no matter how small. We all use Python, therefore, we are always learning something new about Python that we can tell others. Plenty of free parking is available in the RENCI parking deck. The meeting will be followed by our usual after-meeting at a nearby tavern for food and beverage. Come join us for a fun and informative evening. -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute (919) 599-3530 -------------- next part -------------- [1]http://tripython.org/Members/cbc/jan-19-mtg Tim Hopper will school us on PyTest. When: Thursday January 24, 7-9pm Where: Renaissance Computing Institute (RENCI), Biltmore Conference Room, 5th Floor, 100 Europa Drive, Suite 590, Chapel Hill What: Tim Hopper will present PyTest. Tim says, "In this talk, I will introduce Pytest, a testing framework for Python (e.g. an alternative to unittest or Nose. Pytest is simple enough to allow you to start writing tests with zero boiler plate, but grows with your project into a powerful solution for even the most complex software projects." Tim Hopper is a senior data scientist at Cylance where he works on machine learning approaches to malware detection. Prior to Cylance, he worked in blocking malicious automated web traffic and developing a Python library for nonparametric Latent Dirichlet Allocation. He has a masters degree in operations research from North Carolina State University. He lives in Raleigh with his wife and energetic 1 year old. Extemporaneous "lightning talks" of 5-10 minute duration are also welcome and don't need to be pre-announced. Lightning talks are for you to "show and tell" something you've learned about Python recently, no matter how small. We all use Python, therefore, we are always learning something new about Python that we can tell others. Plenty of free parking is available in the RENCI parking deck. The meeting will be followed by our usual after-meeting at a nearby tavern for food and beverage. Come join us for a fun and informative evening. -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute (919) 599-3530 References Visible links 1. http://tripython.org/Members/cbc/jan-19-mtg From cbc at unc.edu Mon Jan 7 13:01:12 2019 From: cbc at unc.edu (Calloway, Chris) Date: Mon, 7 Jan 2019 18:01:12 +0000 Subject: [TriPython] Reminder: Chapel Hill Project Night Message-ID: <8E810C82-6FEA-47EC-B1D1-82DA5C8B5125@unc.edu> TriPython project nights resume for 2019 at RENCI this Wednesday. There will be pizza as usual. Stop by at your leisure for what has become ?Python office hours.? http://tripython.org/Members/cbc/jan-19-chpn When: Wednesday, January 9, 6-9pm Where: Renaissance Computing Institute (RENCI), Biltmore Conference Room, 5th Floor, Europa Center, 100 Europa Drive, Suite 590, Chapel Hill What: Chapel Hill Project Night meets on second Wednesdays. Have a project you want to show off, share, seek help with, or just get some work done surrounded by like-minded Python lovers? Join us for our monthly project night and do just that! Don't have something to work on? Just need some help with Python? Show up and enjoy the energy, sprint on an open source project, find something interesting to contribute to or be inspired by! The setting is informal and there is no schedule, so don't worry if you show up past the start time. Whether you are a Python newbie needing help or have an open source project you want to share, come hang out and hack. Plenty of free after-hours parking is available in the RENCI parking deck. Bring your laptop. -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute (919) 599-3530 -------------- next part -------------- TriPython project nights resume for 2019 at RENCI this Wednesday. There will be pizza as usual. Stop by at your leisure for what has become "Python office hours." [1]http://tripython.org/Members/cbc/jan-19-chpn When: Wednesday, January 9, 6-9pm Where: Renaissance Computing Institute (RENCI), Biltmore Conference Room, 5th Floor, Europa Center, 100 Europa Drive, Suite 590, Chapel Hill What: Chapel Hill Project Night meets on second Wednesdays. Have a project you want to show off, share, seek help with, or just get some work done surrounded by like-minded Python lovers? Join us for our monthly project night and do just that! Don't have something to work on? Just need some help with Python? Show up and enjoy the energy, sprint on an open source project, find something interesting to contribute to or be inspired by! The setting is informal and there is no schedule, so don't worry if you show up past the start time. Whether you are a Python newbie needing help or have an open source project you want to share, come hang out and hack. Plenty of free after-hours parking is available in the RENCI parking deck. Bring your laptop. -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute (919) 599-3530 References Visible links 1. http://tripython.org/Members/cbc/jan-19-chpn From thomson at neuro.duke.edu Mon Jan 14 12:57:40 2019 From: thomson at neuro.duke.edu (Eric Thomson) Date: Mon, 14 Jan 2019 17:57:40 +0000 Subject: [TriPython] Cancelled next Monday: Durham Project Night In-Reply-To: References: , , Message-ID: Just in case anyone was planning things around it, I am planning to NOT have Python Project Night in Durham next Monday. In addition to being MLK day, I am going to be flying back from Los Angeles and will not be back until 7pm. Everyone enjoy your holiday, and we will pick it back up on February 18th! Best, Eric From cbc at unc.edu Wed Jan 16 15:17:17 2019 From: cbc at unc.edu (Calloway, Chris) Date: Wed, 16 Jan 2019 20:17:17 +0000 Subject: [TriPython] Two technical developments for your edification Message-ID: <163C4714-F182-4316-AEFB-583CD1E33E2A@unc.edu> NumFOCUS brought two blog posts to my attention this morning that I?m sharing with you because I think they are important. Think of this an a lightning talk on our email list. The first is from Marius van Niekerk, who we used to see a lot when he worked here locally for the former MaxPoint (now Valassis Digital, where PyData Triangle meets). Marius is a conda-forge core developer and this is something he has to say about conda-forge you may want to read. It?s not long and has been digested for the non-expert: https://medium.com/@marius.v.niekerk/f962241c9437 The second is from Martin Renou at Quantsight, an important group of contributors to the Jupyter ecosystem. He has something important to say about Jupyter which might interest you. This is also short and digested: https://blog.jupyter.org/a-new-python-kernel-for-jupyter-fcdf211e30a8 Read in good health. -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute (919) 599-3530 -------------- next part -------------- NumFOCUS brought two blog posts to my attention this morning that I'm sharing with you because I think they are important. Think of this an a lightning talk on our email list. The first is from Marius van Niekerk, who we used to see a lot when he worked here locally for the former MaxPoint (now Valassis Digital, where PyData Triangle meets). Marius is a conda-forge core developer and this is something he has to say about conda-forge you may want to read. It's not long and has been digested for the non-expert: [1]https://medium.com/@marius.v.niekerk/f962241c9437 The second is from Martin Renou at Quantsight, an important group of contributors to the Jupyter ecosystem. He has something important to say about Jupyter which might interest you. This is also short and digested: [2]https://blog.jupyter.org/a-new-python-kernel-for-jupyter-fcdf211e30a8 Read in good health. -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute (919) 599-3530 References Visible links 1. https://medium.com/@marius.v.niekerk/f962241c9437 2. https://blog.jupyter.org/a-new-python-kernel-for-jupyter-fcdf211e30a8 From cbc at unc.edu Fri Jan 18 11:32:22 2019 From: cbc at unc.edu (Calloway, Chris) Date: Fri, 18 Jan 2019 16:32:22 +0000 Subject: [TriPython] PyData Triangle needs speakers for Feb 6 meeting Message-ID: <40A067DF-531C-46EB-A1A5-12ACB6C788F9@unc.edu> TriPythoneers, One of our sibling meetups, PyData Triangle (https://www.meetup.com/PyData-Triangle/) is looking for speakers for its February 6 meeting taking place at 6pm at Valassis Digital in Morrisville. If you would like to speak at this meeting on an open-source data science topic, please respond either to me or Ginny Ghezzo. It doesn?t have to be Python, just based on an open-source stack. There?s a waitlist for this meeting, so speaking would be a good way to move to the head of the line. -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute (919) 599-3530 -------------- next part -------------- TriPythoneers, One of our sibling meetups, PyData Triangle ([1]https://www.meetup.com/PyData-Triangle/) is looking for speakers for its February 6 meeting taking place at 6pm at Valassis Digital in Morrisville. If you would like to speak at this meeting on an open-source data science topic, please respond either to me or Ginny Ghezzo. It doesn't have to be Python, just based on an open-source stack. There's a waitlist for this meeting, so speaking would be a good way to move to the head of the line. -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute (919) 599-3530 References Visible links 1. https://www.meetup.com/PyData-Triangle/ From rexadwyer at gmail.com Sat Jan 19 10:17:44 2019 From: rexadwyer at gmail.com (Rex Dwyer) Date: Sat, 19 Jan 2019 10:17:44 -0500 Subject: [TriPython] Possible talk (not February) Message-ID: Some of you may know that I design and make wooden geometric puzzles as a hobby. I?m not writing to sell puzzles, but I?m really excited that I ?sold? my first design to a great craftsman, Brian Menold, and he has a nice picture on his website woodwondersonline. Anyway, I noticed in December that 2018-1958 = 60. 1958 is the year Dana Scott became the first person to solve a combinatorial puzzle with a computer. Programming on the MANIAC, he solved one of the Pentomino puzzles, which continue to be popular among puzzlers. Worth noting is the Dana went on to win a Turing Award. I contacted him recently, and he can still get very excited about pentominos! So this is a long and possibly gassy way to say that I?ve been designing new pentomino puzzles using python, and I?d be happy to give a talk on it later in the year (not February) if anyone is interested. It would be long on puzzles and algorithms, and very short on cool python packages, so it?s not going to make you more productive at work. But I can offer door prizes? Incidentally, 2018-1958 = 5x12, and the pentominos consist of a set of 12 puzzle pieces, each made of 5 cubes. And, they can be arranged into a 5x12 rectangle! Numerology is so cool. -- Rex A. Dwyer -------------- next part -------------- Some of you may know that I design and make wooden geometric puzzles as a hobby. I***m not writing to sell puzzles, but I***m really excited that I ***sold*** my first design to a great craftsman, Brian Menold, and he has a nice picture on his website woodwondersonline.** Anyway, I noticed in December that 2018-1958 = 60. 1958 is the year Dana Scott became the first person to solve a combinatorial puzzle with a computer. Programming on the MANIAC, he solved one of the Pentomino puzzles, which continue to be popular among **puzzlers. Worth noting is the Dana went on to win a Turing Award. I contacted him recently, and he can still get very excited about pentominos! So this is a long and possibly gassy way to say that I***ve been designing new pentomino puzzles using python, and I***d be happy to give a talk on it later in the year (not February) if anyone is interested. It would be long on puzzles and algorithms, and very short on cool python packages, so it***s not going to make you more productive at work. But I can offer door prizes**** Incidentally, 2018-1958 = 5x12, and the pentominos consist of a set of 12 puzzle pieces, each made of 5 cubes.** And, they can be arranged into a 5x12 rectangle!** Numerology is so cool. -- Rex A. Dwyer From david at handysoftware.com Sat Jan 19 17:42:22 2019 From: david at handysoftware.com (David Handy) Date: Sat, 19 Jan 2019 17:42:22 -0500 (EST) Subject: [TriPython] =?utf-8?q?Possible_talk_=28not_February=29?= In-Reply-To: References: Message-ID: <1547937742.850520868@apps.rackspace.com> I'm up for fun mathematical talks at TriZPUG. Bring it on! David H On Saturday, January 19, 2019 10:17am, "Rex Dwyer" said: > _______________________________________________ > TriZPUG mailing list > TriZPUG at python.org > https://mail.python.org/mailman/listinfo/trizpug > http://tripython.org is the Triangle Python Users Group > Some of you may know that I design and make wooden geometric puzzles as a > hobby. I?m not writing to sell puzzles, but I?m really excited that I > ?sold? my first design to a great craftsman, Brian Menold, and he has > a > nice picture on his website woodwondersonline. > Anyway, I noticed in December that 2018-1958 = 60. 1958 is the year Dana > Scott became the first person to solve a combinatorial puzzle with a > computer. Programming on the MANIAC, he solved one of the Pentomino > puzzles, which continue to be popular among puzzlers. > Worth noting is the Dana went on to win a Turing Award. I contacted him > recently, and he can still get very excited about pentominos! > So this is a long and possibly gassy way to say that I?ve been designing > new pentomino puzzles using python, and I?d be happy to give a talk on it > later in the year (not February) if anyone is interested. It would be long > on puzzles and algorithms, and very short on cool python packages, so it?s > not going to make you more productive at work. But I can offer door > prizes? > Incidentally, 2018-1958 = 5x12, and the pentominos consist of a set of 12 > puzzle pieces, each made of 5 cubes. And, they can be arranged into a 5x12 > rectangle! Numerology is so cool. > > > > -- > Rex A. Dwyer > Some of you may know that I design and make wooden geometric puzzles as a > hobby. I***m not writing to sell puzzles, but I***m really excited that I > ***sold*** my first design to a great craftsman, Brian Menold, and he has > a nice picture on his website woodwondersonline.** > Anyway, I noticed in December that 2018-1958 = 60. 1958 is the year Dana > Scott became the first person to solve a combinatorial puzzle with a > computer. Programming on the MANIAC, he solved one of the Pentomino > puzzles, which continue to be popular among **puzzlers. > Worth noting is the Dana went on to win a Turing Award. I contacted him > recently, and he can still get very excited about pentominos! > So this is a long and possibly gassy way to say that I***ve been designing > new pentomino puzzles using python, and I***d be happy to give a talk on > it later in the year (not February) if anyone is interested. It would be > long on puzzles and algorithms, and very short on cool python packages, so > it***s not going to make you more productive at work. But I can offer door > prizes**** > Incidentally, 2018-1958 = 5x12, and the pentominos consist of a set of 12 > puzzle pieces, each made of 5 cubes.** And, they can be arranged into a > 5x12 rectangle!** Numerology is so cool. > -- > Rex A. Dwyer > -------------- next part -------------- I'm up for fun mathematical talks at TriZPUG. Bring it on! David H On Saturday, January 19, 2019 10:17am, "Rex Dwyer" said: > _______________________________________________ > TriZPUG mailing list > TriZPUG at python.org > https://mail.python.org/mailman/listinfo/trizpug > http://tripython.org is the Triangle Python Users Group > Some of you may know that I design and make wooden geometric puzzles as a > hobby. I***m not writing to sell puzzles, but I***m really excited that I > ***sold*** my first design to a great craftsman, Brian Menold, and he has > a > nice picture on his website woodwondersonline. > Anyway, I noticed in December that 2018-1958 = 60. 1958 is the year Dana > Scott became the first person to solve a combinatorial puzzle with a > computer. Programming on the MANIAC, he solved one of the Pentomino > puzzles, which continue to be popular among puzzlers. > Worth noting is the Dana went on to win a Turing Award. I contacted him > recently, and he can still get very excited about pentominos! > So this is a long and possibly gassy way to say that I***ve been designing > new pentomino puzzles using python, and I***d be happy to give a talk on it > later in the year (not February) if anyone is interested. It would be long > on puzzles and algorithms, and very short on cool python packages, so it***s > not going to make you more productive at work. But I can offer door > prizes**** > Incidentally, 2018-1958 = 5x12, and the pentominos consist of a set of 12 > puzzle pieces, each made of 5 cubes. And, they can be arranged into a 5x12 > rectangle! Numerology is so cool. > > > > -- > Rex A. Dwyer > Some of you may know that I design and make wooden geometric puzzles as a > hobby. I***m not writing to sell puzzles, but I***m really excited that I > ***sold*** my first design to a great craftsman, Brian Menold, and he has > a nice picture on his website woodwondersonline.** > Anyway, I noticed in December that 2018-1958 = 60. 1958 is the year Dana > Scott became the first person to solve a combinatorial puzzle with a > computer. Programming on the MANIAC, he solved one of the Pentomino > puzzles, which continue to be popular among **puzzlers. > Worth noting is the Dana went on to win a Turing Award. I contacted him > recently, and he can still get very excited about pentominos! > So this is a long and possibly gassy way to say that I***ve been designing > new pentomino puzzles using python, and I***d be happy to give a talk on > it later in the year (not February) if anyone is interested. It would be > long on puzzles and algorithms, and very short on cool python packages, so > it***s not going to make you more productive at work. But I can offer door > prizes**** > Incidentally, 2018-1958 = 5x12, and the pentominos consist of a set of 12 > puzzle pieces, each made of 5 cubes.** And, they can be arranged into a > 5x12 rectangle!** Numerology is so cool. > -- > Rex A. Dwyer > From short.doug at gmail.com Sat Jan 19 18:24:19 2019 From: short.doug at gmail.com (Doug Short) Date: Sat, 19 Jan 2019 18:24:19 -0500 Subject: [TriPython] Possible talk (not February) In-Reply-To: References: Message-ID: This talk sounds awesome. You got my vote. On Sat, Jan 19, 2019, 10:18 AM Rex Dwyer Some of you may know that I design and make wooden geometric puzzles as > a > hobby. I***m not writing to sell puzzles, but I***m really excited that > I > ***sold*** my first design to a great craftsman, Brian Menold, and he > has > a nice picture on his website woodwondersonline.** > Anyway, I noticed in December that 2018-1958 = 60. 1958 is the year Dana > Scott became the first person to solve a combinatorial puzzle with a > computer. Programming on the MANIAC, he solved one of the Pentomino > puzzles, which continue to be popular among **puzzlers. > Worth noting is the Dana went on to win a Turing Award. I contacted him > recently, and he can still get very excited about pentominos! > So this is a long and possibly gassy way to say that I***ve been > designing > new pentomino puzzles using python, and I***d be happy to give a talk on > it later in the year (not February) if anyone is interested. It would be > long on puzzles and algorithms, and very short on cool python packages, > so > it***s not going to make you more productive at work. But I can offer > door > prizes**** > Incidentally, 2018-1958 = 5x12, and the pentominos consist of a set of > 12 > puzzle pieces, each made of 5 cubes.** And, they can be arranged into a > 5x12 rectangle!** Numerology is so cool. > -- > Rex A. Dwyer > _______________________________________________ > TriZPUG mailing list > TriZPUG at python.org > https://mail.python.org/mailman/listinfo/trizpug > http://tripython.org is the Triangle Python Users Group > -------------- next part -------------- This talk sounds awesome. You got my vote. On Sat, Jan 19, 2019, 10:18 AM Rex Dwyer <[1]rexadwyer at gmail.com wrote: ** **Some of you may know that I design and make wooden geometric puzzles as a ** **hobby. I***m not writing to sell puzzles, but I***m really excited that I ** *****sold*** my first design to a great craftsman, Brian Menold, and he has ** **a nice picture on his website woodwondersonline.** ** **Anyway, I noticed in December that 2018-1958 = 60. 1958 is the year Dana ** **Scott became the first person to solve a combinatorial puzzle with a ** **computer. Programming on the MANIAC, he solved one of the Pentomino ** **puzzles, which continue to be popular among **puzzlers. ** **Worth noting is the Dana went on to win a Turing Award. I contacted him ** **recently, and he can still get very excited about pentominos! ** **So this is a long and possibly gassy way to say that I***ve been designing ** **new pentomino puzzles using python, and I***d be happy to give a talk on ** **it later in the year (not February) if anyone is interested. It would be ** **long on puzzles and algorithms, and very short on cool python packages, so ** **it***s not going to make you more productive at work. But I can offer door ** **prizes**** ** **Incidentally, 2018-1958 = 5x12, and the pentominos consist of a set of 12 ** **puzzle pieces, each made of 5 cubes.** And, they can be arranged into a ** **5x12 rectangle!** Numerology is so cool. ** **-- ** **Rex A. Dwyer _______________________________________________ TriZPUG mailing list [2]TriZPUG at python.org [3]https://mail.python.org/mailman/listinfo/trizpug [4]http://tripython.org is the Triangle Python Users Group References Visible links 1. mailto:rexadwyer at gmail.com 2. mailto:TriZPUG at python.org 3. https://mail.python.org/mailman/listinfo/trizpug 4. http://tripython.org/ From thomson at neuro.duke.edu Mon Jan 21 16:59:31 2019 From: thomson at neuro.duke.edu (Eric Thomson) Date: Mon, 21 Jan 2019 21:59:31 +0000 Subject: [TriPython] Reminder: There is no Project Night in Durham tonight In-Reply-To: References: , , , Message-ID: Just a reminder, there is no Project Night in Durham tonight: next one will be February 18th. Have a great night. Eric ________________________________________ From: Eric Thomson Sent: Monday, January 14, 2019 12:57 PM To: Triangle (North Carolina) Python Users Group (formerly TriZPUG) Subject: Cancelled next Monday: Durham Project Night Just in case anyone was planning things around it, I am planning to NOT have Python Project Night in Durham next Monday. In addition to being MLK day, I am going to be flying back from Los Angeles and will not be back until 7pm. Everyone enjoy your holiday, and we will pick it back up on February 18th! Best, Eric From david at handysoftware.com Mon Jan 21 19:18:47 2019 From: david at handysoftware.com (David Handy) Date: Mon, 21 Jan 2019 19:18:47 -0500 (EST) Subject: [TriPython] =?utf-8?q?Help_with_matplotlib_plotting_from_pandas_?= =?utf-8?q?=28installed_by_conda=29?= Message-ID: <1548116327.949823308@apps.rackspace.com> Hi Python / data science friends - I'm switching to use conda instead of pip, at least for this particular data science project. I installed pandas, ipython matplotlib, and am working through the pandas intro: http://pandas.pydata.org/pandas-docs/stable/10min.html Everything seems to be working fine except plotting: In [35]: ts = pd.Series(np.random.randn(1000), index=pd.date_range('1/1/2000', p ...: eriods=1000)) In [36]: ts = ts.cumsum() In [37]: ts.plot() Out[37]: ... and that's it. No window pops up, nothing gets displayed. I'm running Fedora Linux. What basic thing am I missing? Was I supposed to install something related to Tkinter to plot via tkinter? Thanks, David H -------------- next part -------------- Hi Python / data science friends - I'm switching to use conda instead of pip, at least for this particular data science project. I installed pandas, ipython matplotlib, and am working through the pandas intro: http://pandas.pydata.org/pandas-docs/stable/10min.html Everything seems to be working fine except plotting: In [35]: ts = pd.Series(np.random.randn(1000), index=pd.date_range('1/1/2000', p ...: eriods=1000)) In [36]: ts = ts.cumsum() In [37]: ts.plot() Out[37]: ... and that's it. No window pops up, nothing gets displayed. I'm running Fedora Linux. What basic thing am I missing? Was I supposed to install something related to Tkinter to plot via tkinter? Thanks, David H From imran.a.shah at gmail.com Mon Jan 21 19:29:56 2019 From: imran.a.shah at gmail.com (Imran Shah) Date: Mon, 21 Jan 2019 19:29:56 -0500 Subject: [TriPython] Help with matplotlib plotting from pandas (installed by conda) In-Reply-To: <1548116327.949823308@apps.rackspace.com> References: <1548116327.949823308@apps.rackspace.com> Message-ID: Have you imported pylab already? from matplotlib import pyplot as pl -- Imran Shah On Mon, Jan 21, 2019, 7:19 PM David Handy Hi Python / data science friends - > > > > I'm switching to use conda instead of pip, at least for this particular > data science project. I installed pandas, ipython matplotlib, and am > working through the pandas intro: > http://pandas.pydata.org/pandas-docs/stable/10min.html > > > > Everything seems to be working fine except plotting: > > > > In [35]: ts = pd.Series(np.random.randn(1000), > index=pd.date_range('1/1/2000', p > ...: eriods=1000)) > > In [36]: ts = ts.cumsum() > > In [37]: ts.plot() > Out[37]: > > > > ... and that's it. No window pops up, nothing gets displayed. > > > > I'm running Fedora Linux. > > > > What basic thing am I missing? Was I supposed to install something > related > to Tkinter to plot via tkinter? > > > > Thanks, > > David H > > > _______________________________________________ > TriZPUG mailing list > TriZPUG at python.org > https://mail.python.org/mailman/listinfo/trizpug > http://tripython.org is the Triangle Python Users Group > -------------- next part -------------- Have you imported pylab already?** from matplotlib import pyplot as pl -- Imran Shah On Mon, Jan 21, 2019, 7:19 PM David Handy <[1]david at handysoftware.com wrote: ** **Hi Python / data science friends - ** **I'm switching to use conda instead of pip, at least for this particular ** **data science project. I installed pandas, ipython matplotlib, and am ** **working through the pandas intro: ** **[2]http://pandas.pydata.org/pandas-docs/stable/10min.html ** **Everything seems to be working fine except plotting: ** **In [35]: ts = pd.Series(np.random.randn(1000), ** **index=pd.date_range('1/1/2000', p ** ** ** **...: eriods=1000)) ** **In [36]: ts = ts.cumsum() ** **In [37]: ts.plot() ** **Out[37]: ** **... and that's it. No window pops up, nothing gets displayed. ** **I'm running Fedora Linux. ** **What basic thing am I missing? Was I supposed to install something related ** **to Tkinter to plot via tkinter? ** **Thanks, ** **David H _______________________________________________ TriZPUG mailing list [3]TriZPUG at python.org [4]https://mail.python.org/mailman/listinfo/trizpug [5]http://tripython.org is the Triangle Python Users Group References Visible links 1. mailto:david at handysoftware.com 2. http://pandas.pydata.org/pandas-docs/stable/10min.html 3. mailto:TriZPUG at python.org 4. https://mail.python.org/mailman/listinfo/trizpug 5. http://tripython.org/ From david at handysoftware.com Mon Jan 21 21:30:19 2019 From: david at handysoftware.com (David Handy) Date: Mon, 21 Jan 2019 21:30:19 -0500 (EST) Subject: [TriPython] =?utf-8?q?Help_with_matplotlib_plotting_from_pandas_?= =?utf-8?q?=28installed_by_conda=29?= In-Reply-To: References: <1548116327.949823308@apps.rackspace.com> Message-ID: <1548124219.647814140@apps.rackspace.com> Thank you, yes I did that import already. If I had not, I would have gotten a NameError exception running those commands. Also just now I tried: from IPython.display import display and then: p = ts.plot() display(p) I also tried: In [53]: %matplotlib Using matplotlib backend: Qt5Agg In [54]: p Out[54]: In [55]: display(p) Nope. I've got to be really close. There's something really basic I'm missing. I have definitely gotten matplotlib to work on this computer before, just never with conda-installed packages. David H On Monday, January 21, 2019 7:29pm, "Imran Shah" said: > _______________________________________________ > TriZPUG mailing list > TriZPUG at python.org > https://mail.python.org/mailman/listinfo/trizpug > http://tripython.org is the Triangle Python Users Group > Have you imported pylab already? > > from matplotlib import pyplot as pl > > > -- > Imran Shah > > On Mon, Jan 21, 2019, 7:19 PM David Handy > > Hi Python / data science friends - > > > > > > > > I'm switching to use conda instead of pip, at least for this particular > > data science project. I installed pandas, ipython matplotlib, and am > > working through the pandas intro: > > http://pandas.pydata.org/pandas-docs/stable/10min.html > > > > > > > > Everything seems to be working fine except plotting: > > > > > > > > In [35]: ts = pd.Series(np.random.randn(1000), > > index=pd.date_range('1/1/2000', p > > ...: eriods=1000)) > > > > In [36]: ts = ts.cumsum() > > > > In [37]: ts.plot() > > Out[37]: > > > > > > > > ... and that's it. No window pops up, nothing gets displayed. > > > > > > > > I'm running Fedora Linux. > > > > > > > > What basic thing am I missing? Was I supposed to install something > > related > > to Tkinter to plot via tkinter? > > > > > > > > Thanks, > > > > David H > > > > > > _______________________________________________ > > TriZPUG mailing list > > TriZPUG at python.org > > https://mail.python.org/mailman/listinfo/trizpug > > http://tripython.org is the Triangle Python Users Group > > > Have you imported pylab already?** > from matplotlib import pyplot as pl > -- > Imran Shah > On Mon, Jan 21, 2019, 7:19 PM David Handy <[1]david at handysoftware.com > wrote: > > ** **Hi Python / data science friends - > > ** **I'm switching to use conda instead of pip, at least for this > particular > ** **data science project. I installed pandas, ipython matplotlib, and > am > ** **working through the pandas intro: > ** **[2]http://pandas.pydata.org/pandas-docs/stable/10min.html > > ** **Everything seems to be working fine except plotting: > > ** **In [35]: ts = pd.Series(np.random.randn(1000), > ** **index=pd.date_range('1/1/2000', p > ** ** ** **...: eriods=1000)) > > ** **In [36]: ts = ts.cumsum() > > ** **In [37]: ts.plot() > ** **Out[37]: 0x7f8c78066190> > > ** **... and that's it. No window pops up, nothing gets displayed. > > ** **I'm running Fedora Linux. > > ** **What basic thing am I missing? Was I supposed to install something > related > ** **to Tkinter to plot via tkinter? > > ** **Thanks, > > ** **David H > > _______________________________________________ > TriZPUG mailing list > [3]TriZPUG at python.org > [4]https://mail.python.org/mailman/listinfo/trizpug > [5]http://tripython.org is the Triangle Python Users Group > > References > > Visible links > 1. mailto:david at handysoftware.com > 2. http://pandas.pydata.org/pandas-docs/stable/10min.html > 3. mailto:TriZPUG at python.org > 4. https://mail.python.org/mailman/listinfo/trizpug > 5. http://tripython.org/ > -------------- next part -------------- Thank you, yes I did that import already. If I had not, I would have gotten a NameError exception running those commands. Also just now I tried: from IPython.display import display and then: p = ts.plot() display(p) I also tried: In [53]: %matplotlib Using matplotlib backend: Qt5Agg In [54]: p Out[54]: In [55]: display(p) Nope. I've got to be really close. There's something really basic I'm missing. I have definitely gotten matplotlib to work on this computer before, just never with conda-installed packages. David H On Monday, January 21, 2019 7:29pm, "Imran Shah" said: > _______________________________________________ > TriZPUG mailing list > TriZPUG at python.org > https://mail.python.org/mailman/listinfo/trizpug > http://tripython.org is the Triangle Python Users Group > Have you imported pylab already? > > from matplotlib import pyplot as pl > > > -- > Imran Shah > > On Mon, Jan 21, 2019, 7:19 PM David Handy > > Hi Python / data science friends - > > > > > > > > I'm switching to use conda instead of pip, at least for this particular > > data science project. I installed pandas, ipython matplotlib, and am > > working through the pandas intro: > > http://pandas.pydata.org/pandas-docs/stable/10min.html > > > > > > > > Everything seems to be working fine except plotting: > > > > > > > > In [35]: ts = pd.Series(np.random.randn(1000), > > index=pd.date_range('1/1/2000', p > > ...: eriods=1000)) > > > > In [36]: ts = ts.cumsum() > > > > In [37]: ts.plot() > > Out[37]: > > > > > > > > ... and that's it. No window pops up, nothing gets displayed. > > > > > > > > I'm running Fedora Linux. > > > > > > > > What basic thing am I missing? Was I supposed to install something > > related > > to Tkinter to plot via tkinter? > > > > > > > > Thanks, > > > > David H > > > > > > _______________________________________________ > > TriZPUG mailing list > > TriZPUG at python.org > > https://mail.python.org/mailman/listinfo/trizpug > > http://tripython.org is the Triangle Python Users Group > > > Have you imported pylab already?** > from matplotlib import pyplot as pl > -- > Imran Shah > On Mon, Jan 21, 2019, 7:19 PM David Handy <[1]david at handysoftware.com > wrote: > > ** **Hi Python / data science friends - > > ** **I'm switching to use conda instead of pip, at least for this > particular > ** **data science project. I installed pandas, ipython matplotlib, and > am > ** **working through the pandas intro: > ** **[2]http://pandas.pydata.org/pandas-docs/stable/10min.html > > ** **Everything seems to be working fine except plotting: > > ** **In [35]: ts = pd.Series(np.random.randn(1000), > ** **index=pd.date_range('1/1/2000', p > ** ** ** **...: eriods=1000)) > > ** **In [36]: ts = ts.cumsum() > > ** **In [37]: ts.plot() > ** **Out[37]: 0x7f8c78066190> > > ** **... and that's it. No window pops up, nothing gets displayed. > > ** **I'm running Fedora Linux. > > ** **What basic thing am I missing? Was I supposed to install something > related > ** **to Tkinter to plot via tkinter? > > ** **Thanks, > > ** **David H > > _______________________________________________ > TriZPUG mailing list > [3]TriZPUG at python.org > [4]https://mail.python.org/mailman/listinfo/trizpug > [5]http://tripython.org is the Triangle Python Users Group > > References > > Visible links > 1. mailto:david at handysoftware.com > 2. http://pandas.pydata.org/pandas-docs/stable/10min.html > 3. mailto:TriZPUG at python.org > 4. https://mail.python.org/mailman/listinfo/trizpug > 5. http://tripython.org/ > From artem.nesterenko at gmail.com Mon Jan 21 22:13:14 2019 From: artem.nesterenko at gmail.com (Art) Date: Mon, 21 Jan 2019 22:13:14 -0500 Subject: [TriPython] Help with matplotlib plotting from pandas (installed by conda) In-Reply-To: <1548116327.949823308@apps.rackspace.com> References: <1548116327.949823308@apps.rackspace.com> Message-ID: Your code works fine for me. I can see the chart. Here're my imports: import pandas as pd import numpy as np import matplotlib.pyplot as plt %matplotlib inline - Art. Art Nestsiarenka email: artem.nesterenko at gmail.com On Mon, Jan 21, 2019 at 7:19 PM David Handy wrote: > Hi Python / data science friends - > > > > I'm switching to use conda instead of pip, at least for this particular > data science project. I installed pandas, ipython matplotlib, and am > working through the pandas intro: > http://pandas.pydata.org/pandas-docs/stable/10min.html > > > > Everything seems to be working fine except plotting: > > > > In [35]: ts = pd.Series(np.random.randn(1000), > index=pd.date_range('1/1/2000', p > ...: eriods=1000)) > > In [36]: ts = ts.cumsum() > > In [37]: ts.plot() > Out[37]: > > > > ... and that's it. No window pops up, nothing gets displayed. > > > > I'm running Fedora Linux. > > > > What basic thing am I missing? Was I supposed to install something > related > to Tkinter to plot via tkinter? > > > > Thanks, > > David H > > > _______________________________________________ > TriZPUG mailing list > TriZPUG at python.org > https://mail.python.org/mailman/listinfo/trizpug > http://tripython.org is the Triangle Python Users Group > -------------- next part -------------- Your code works fine for me. I can see the chart. Here're my imports: import pandas as pd import numpy as np import matplotlib.pyplot as plt %matplotlib inline - Art. Art Nestsiarenka email: [1]artem.nesterenko at gmail.com On Mon, Jan 21, 2019 at 7:19 PM David Handy <[2]david at handysoftware.com> wrote: ** **Hi Python / data science friends - ** **I'm switching to use conda instead of pip, at least for this particular ** **data science project. I installed pandas, ipython matplotlib, and am ** **working through the pandas intro: ** **[3]http://pandas.pydata.org/pandas-docs/stable/10min.html ** **Everything seems to be working fine except plotting: ** **In [35]: ts = pd.Series(np.random.randn(1000), ** **index=pd.date_range('1/1/2000', p ** ** ** **...: eriods=1000)) ** **In [36]: ts = ts.cumsum() ** **In [37]: ts.plot() ** **Out[37]: ** **... and that's it. No window pops up, nothing gets displayed. ** **I'm running Fedora Linux. ** **What basic thing am I missing? Was I supposed to install something related ** **to Tkinter to plot via tkinter? ** **Thanks, ** **David H _______________________________________________ TriZPUG mailing list [4]TriZPUG at python.org [5]https://mail.python.org/mailman/listinfo/trizpug [6]http://tripython.org is the Triangle Python Users Group References Visible links 1. mailto:artem.nesterenko at gmail.com 2. mailto:david at handysoftware.com 3. http://pandas.pydata.org/pandas-docs/stable/10min.html 4. mailto:TriZPUG at python.org 5. https://mail.python.org/mailman/listinfo/trizpug 6. http://tripython.org/ From david at handysoftware.com Mon Jan 21 22:27:46 2019 From: david at handysoftware.com (David Handy) Date: Mon, 21 Jan 2019 22:27:46 -0500 (EST) Subject: [TriPython] =?utf-8?q?Help_with_matplotlib_plotting_from_pandas_?= =?utf-8?q?=28installed_by_conda=29?= In-Reply-To: References: <1548116327.949823308@apps.rackspace.com> Message-ID: <1548127666.810514071@apps.rackspace.com> Thanks Art! I had not tried "%matplotlib inline" yet. When I did that, I got an import error and had to install ipykernel. Then I got: UnknownBackend: No event loop integration for 'inline'. Supported event loops are: qt, qt4, qt5, gtk, gtk2, gtk3, tk, wx, pyglet, glut, osx After some googling, I tried: %matplotlib tk ... and then plotting worked! Thanks, David H On Monday, January 21, 2019 10:13pm, "Art" said: > _______________________________________________ > TriZPUG mailing list > TriZPUG at python.org > https://mail.python.org/mailman/listinfo/trizpug > http://tripython.org is the Triangle Python Users Group > Your code works fine for me. I can see the chart. Here're my imports: > > import pandas as pd > import numpy as np > import matplotlib.pyplot as plt > %matplotlib inline > > - Art. > > Art Nestsiarenka > email: artem.nesterenko at gmail.com > > > > > > On Mon, Jan 21, 2019 at 7:19 PM David Handy > wrote: > > > Hi Python / data science friends - > > > > > > > > I'm switching to use conda instead of pip, at least for this particular > > data science project. I installed pandas, ipython matplotlib, and am > > working through the pandas intro: > > http://pandas.pydata.org/pandas-docs/stable/10min.html > > > > > > > > Everything seems to be working fine except plotting: > > > > > > > > In [35]: ts = pd.Series(np.random.randn(1000), > > index=pd.date_range('1/1/2000', p > > ...: eriods=1000)) > > > > In [36]: ts = ts.cumsum() > > > > In [37]: ts.plot() > > Out[37]: > > > > > > > > ... and that's it. No window pops up, nothing gets displayed. > > > > > > > > I'm running Fedora Linux. > > > > > > > > What basic thing am I missing? Was I supposed to install something > > related > > to Tkinter to plot via tkinter? > > > > > > > > Thanks, > > > > David H > > > > > > _______________________________________________ > > TriZPUG mailing list > > TriZPUG at python.org > > https://mail.python.org/mailman/listinfo/trizpug > > http://tripython.org is the Triangle Python Users Group > > > Your code works fine for me. I can see the chart. Here're my imports: > import pandas as pd > import numpy as np > import matplotlib.pyplot as plt > %matplotlib inline > - Art. > Art Nestsiarenka > email: [1]artem.nesterenko at gmail.com > > On Mon, Jan 21, 2019 at 7:19 PM David Handy <[2]david at handysoftware.com> > wrote: > > ** **Hi Python / data science friends - > > ** **I'm switching to use conda instead of pip, at least for this > particular > ** **data science project. I installed pandas, ipython matplotlib, and > am > ** **working through the pandas intro: > ** **[3]http://pandas.pydata.org/pandas-docs/stable/10min.html > > ** **Everything seems to be working fine except plotting: > > ** **In [35]: ts = pd.Series(np.random.randn(1000), > ** **index=pd.date_range('1/1/2000', p > ** ** ** **...: eriods=1000)) > > ** **In [36]: ts = ts.cumsum() > > ** **In [37]: ts.plot() > ** **Out[37]: 0x7f8c78066190> > > ** **... and that's it. No window pops up, nothing gets displayed. > > ** **I'm running Fedora Linux. > > ** **What basic thing am I missing? Was I supposed to install something > related > ** **to Tkinter to plot via tkinter? > > ** **Thanks, > > ** **David H > > _______________________________________________ > TriZPUG mailing list > [4]TriZPUG at python.org > [5]https://mail.python.org/mailman/listinfo/trizpug > [6]http://tripython.org is the Triangle Python Users Group > > References > > Visible links > 1. mailto:artem.nesterenko at gmail.com > 2. mailto:david at handysoftware.com > 3. http://pandas.pydata.org/pandas-docs/stable/10min.html > 4. mailto:TriZPUG at python.org > 5. https://mail.python.org/mailman/listinfo/trizpug > 6. http://tripython.org/ > -------------- next part -------------- Thanks Art! I had not tried "%matplotlib inline" yet. When I did that, I got an import error and had to install ipykernel. Then I got: UnknownBackend: No event loop integration for 'inline'. Supported event loops are: qt, qt4, qt5, gtk, gtk2, gtk3, tk, wx, pyglet, glut, osx After some googling, I tried: %matplotlib tk ... and then plotting worked! Thanks, David H On Monday, January 21, 2019 10:13pm, "Art" said: > _______________________________________________ > TriZPUG mailing list > TriZPUG at python.org > https://mail.python.org/mailman/listinfo/trizpug > http://tripython.org is the Triangle Python Users Group > Your code works fine for me. I can see the chart. Here're my imports: > > import pandas as pd > import numpy as np > import matplotlib.pyplot as plt > %matplotlib inline > > - Art. > > Art Nestsiarenka > email: artem.nesterenko at gmail.com > > > > > > On Mon, Jan 21, 2019 at 7:19 PM David Handy > wrote: > > > Hi Python / data science friends - > > > > > > > > I'm switching to use conda instead of pip, at least for this particular > > data science project. I installed pandas, ipython matplotlib, and am > > working through the pandas intro: > > http://pandas.pydata.org/pandas-docs/stable/10min.html > > > > > > > > Everything seems to be working fine except plotting: > > > > > > > > In [35]: ts = pd.Series(np.random.randn(1000), > > index=pd.date_range('1/1/2000', p > > ...: eriods=1000)) > > > > In [36]: ts = ts.cumsum() > > > > In [37]: ts.plot() > > Out[37]: > > > > > > > > ... and that's it. No window pops up, nothing gets displayed. > > > > > > > > I'm running Fedora Linux. > > > > > > > > What basic thing am I missing? Was I supposed to install something > > related > > to Tkinter to plot via tkinter? > > > > > > > > Thanks, > > > > David H > > > > > > _______________________________________________ > > TriZPUG mailing list > > TriZPUG at python.org > > https://mail.python.org/mailman/listinfo/trizpug > > http://tripython.org is the Triangle Python Users Group > > > Your code works fine for me. I can see the chart. Here're my imports: > import pandas as pd > import numpy as np > import matplotlib.pyplot as plt > %matplotlib inline > - Art. > Art Nestsiarenka > email: [1]artem.nesterenko at gmail.com > > On Mon, Jan 21, 2019 at 7:19 PM David Handy <[2]david at handysoftware.com> > wrote: > > ** **Hi Python / data science friends - > > ** **I'm switching to use conda instead of pip, at least for this > particular > ** **data science project. I installed pandas, ipython matplotlib, and > am > ** **working through the pandas intro: > ** **[3]http://pandas.pydata.org/pandas-docs/stable/10min.html > > ** **Everything seems to be working fine except plotting: > > ** **In [35]: ts = pd.Series(np.random.randn(1000), > ** **index=pd.date_range('1/1/2000', p > ** ** ** **...: eriods=1000)) > > ** **In [36]: ts = ts.cumsum() > > ** **In [37]: ts.plot() > ** **Out[37]: 0x7f8c78066190> > > ** **... and that's it. No window pops up, nothing gets displayed. > > ** **I'm running Fedora Linux. > > ** **What basic thing am I missing? Was I supposed to install something > related > ** **to Tkinter to plot via tkinter? > > ** **Thanks, > > ** **David H > > _______________________________________________ > TriZPUG mailing list > [4]TriZPUG at python.org > [5]https://mail.python.org/mailman/listinfo/trizpug > [6]http://tripython.org is the Triangle Python Users Group > > References > > Visible links > 1. mailto:artem.nesterenko at gmail.com > 2. mailto:david at handysoftware.com > 3. http://pandas.pydata.org/pandas-docs/stable/10min.html > 4. mailto:TriZPUG at python.org > 5. https://mail.python.org/mailman/listinfo/trizpug > 6. http://tripython.org/ > From rexadwyer at gmail.com Mon Jan 21 23:16:48 2019 From: rexadwyer at gmail.com (Rex Dwyer) Date: Mon, 21 Jan 2019 23:16:48 -0500 Subject: [TriPython] matplotlib In-Reply-To: References: Message-ID: plt.show() ??? On Mon, Jan 21, 2019 at 9:40 PM wrote: > Send TriZPUG mailing list submissions to > trizpug at python.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://mail.python.org/mailman/listinfo/trizpug > or, via email, send a message with subject or body 'help' to > trizpug-request at python.org > > You can reach the person managing the list at > trizpug-owner at python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of TriZPUG digest..." > Today's Topics: > > 1. Reminder: There is no Project Night in Durham tonight > (Eric Thomson) > 2. Help with matplotlib plotting from pandas (installed by > conda) (David Handy) > 3. Re: Help with matplotlib plotting from pandas (installed by > conda) (Imran Shah) > 4. Re: Help with matplotlib plotting from pandas (installed by > conda) (David Handy) > > > > ---------- Forwarded message ---------- > From: Eric Thomson > To: "Triangle (North Carolina) Python Users Group (formerly TriZPUG)" < > trizpug at python.org> > Cc: > Bcc: > Date: Mon, 21 Jan 2019 21:59:31 +0000 > Subject: [TriPython] Reminder: There is no Project Night in Durham tonight > Just a reminder, there is no Project Night in Durham tonight: next one > will be February 18th. > > Have a great night. > > Eric > ________________________________________ > From: Eric Thomson > Sent: Monday, January 14, 2019 12:57 PM > To: Triangle (North Carolina) Python Users Group (formerly TriZPUG) > Subject: Cancelled next Monday: Durham Project Night > > Just in case anyone was planning things around it, I am planning to NOT > have Python Project Night in Durham next Monday. In addition to being MLK > day, I am going to be flying back from Los Angeles and will not be back > until 7pm. Everyone enjoy your holiday, and we will pick it back up on > February 18th! > > Best, > Eric > > > > > ---------- Forwarded message ---------- > From: David Handy > To: trizpug at python.org > Cc: > Bcc: > Date: Mon, 21 Jan 2019 19:18:47 -0500 (EST) > Subject: [TriPython] Help with matplotlib plotting from pandas (installed > by conda) > Hi Python / data science friends - > > > > I'm switching to use conda instead of pip, at least for this particular > data science project. I installed pandas, ipython matplotlib, and am > working through the pandas intro: > http://pandas.pydata.org/pandas-docs/stable/10min.html > > > > Everything seems to be working fine except plotting: > > > > In [35]: ts = pd.Series(np.random.randn(1000), > index=pd.date_range('1/1/2000', p > ...: eriods=1000)) > > In [36]: ts = ts.cumsum() > > In [37]: ts.plot() > Out[37]: > > > > ... and that's it. No window pops up, nothing gets displayed. > > > > I'm running Fedora Linux. > > > > What basic thing am I missing? Was I supposed to install something > related > to Tkinter to plot via tkinter? > > > > Thanks, > > David H > > > > > > ---------- Forwarded message ---------- > From: Imran Shah > To: "Triangle (North Carolina) Python Users Group (formerly TriZPUG)" < > trizpug at python.org> > Cc: > Bcc: > Date: Mon, 21 Jan 2019 19:29:56 -0500 > Subject: Re: [TriPython] Help with matplotlib plotting from pandas > (installed by conda) > Have you imported pylab already?** > from matplotlib import pyplot as pl > -- > Imran Shah > On Mon, Jan 21, 2019, 7:19 PM David Handy <[1]david at handysoftware.com > wrote: > > ** **Hi Python / data science friends - > > ** **I'm switching to use conda instead of pip, at least for this > particular > ** **data science project. I installed pandas, ipython matplotlib, and > am > ** **working through the pandas intro: > ** **[2]http://pandas.pydata.org/pandas-docs/stable/10min.html > > ** **Everything seems to be working fine except plotting: > > ** **In [35]: ts = pd.Series(np.random.randn(1000), > ** **index=pd.date_range('1/1/2000', p > ** ** ** **...: eriods=1000)) > > ** **In [36]: ts = ts.cumsum() > > ** **In [37]: ts.plot() > ** **Out[37]: 0x7f8c78066190> > > ** **... and that's it. No window pops up, nothing gets displayed. > > ** **I'm running Fedora Linux. > > ** **What basic thing am I missing? Was I supposed to install > something > related > ** **to Tkinter to plot via tkinter? > > ** **Thanks, > > ** **David H > > _______________________________________________ > TriZPUG mailing list > [3]TriZPUG at python.org > [4]https://mail.python.org/mailman/listinfo/trizpug > [5]http://tripython.org is the Triangle Python Users Group > > References > > Visible links > 1. mailto:david at handysoftware.com > 2. http://pandas.pydata.org/pandas-docs/stable/10min.html > 3. mailto:TriZPUG at python.org > 4. https://mail.python.org/mailman/listinfo/trizpug > 5. http://tripython.org/ > > > > ---------- Forwarded message ---------- > From: David Handy > To: "Triangle (North Carolina) Python Users Group (formerly TriZPUG)" < > trizpug at python.org> > Cc: > Bcc: > Date: Mon, 21 Jan 2019 21:30:19 -0500 (EST) > Subject: Re: [TriPython] Help with matplotlib plotting from pandas > (installed by conda) > Thank you, yes I did that import already. > > If I had not, I would have gotten a NameError exception running those > commands. > > > > Also just now I tried: > > from IPython.display import display > > > > and then: > > > > p = ts.plot() > > display(p) > > > > I also tried: > > > > In [53]: %matplotlib > Using matplotlib backend: Qt5Agg > > In [54]: p > Out[54]: > > In [55]: display(p) > > > > > Nope. > > > > I've got to be really close. There's something really basic I'm > missing. I > have definitely gotten matplotlib to work on this computer before, just > never with conda-installed packages. > > > > David H > > > > > > > > > > > > On Monday, January 21, 2019 7:29pm, "Imran Shah" < > imran.a.shah at gmail.com> > said: > > > _______________________________________________ > > TriZPUG mailing list > > TriZPUG at python.org > > https://mail.python.org/mailman/listinfo/trizpug > > http://tripython.org is the Triangle Python Users Group > > Have you imported pylab already? > > > > from matplotlib import pyplot as pl > > > > > > -- > > Imran Shah > > > > On Mon, Jan 21, 2019, 7:19 PM David Handy wrote: > > > > > Hi Python / data science friends - > > > > > > > > > > > > I'm switching to use conda instead of pip, at least for this > particular > > > data science project. I installed pandas, ipython matplotlib, and am > > > working through the pandas intro: > > > http://pandas.pydata.org/pandas-docs/stable/10min.html > > > > > > > > > > > > Everything seems to be working fine except plotting: > > > > > > > > > > > > In [35]: ts = pd.Series(np.random.randn(1000), > > > index=pd.date_range('1/1/2000', p > > > ...: eriods=1000)) > > > > > > In [36]: ts = ts.cumsum() > > > > > > In [37]: ts.plot() > > > Out[37]: > > > > > > > > > > > > ... and that's it. No window pops up, nothing gets displayed. > > > > > > > > > > > > I'm running Fedora Linux. > > > > > > > > > > > > What basic thing am I missing? Was I supposed to install something > > > related > > > to Tkinter to plot via tkinter? > > > > > > > > > > > > Thanks, > > > > > > David H > > > > > > > > > _______________________________________________ > > > TriZPUG mailing list > > > TriZPUG at python.org > > > https://mail.python.org/mailman/listinfo/trizpug > > > http://tripython.org is the Triangle Python Users Group > > > > > Have you imported pylab already?** > > from matplotlib import pyplot as pl > > -- > > Imran Shah > > On Mon, Jan 21, 2019, 7:19 PM David Handy <[1]david at handysoftware.com > > wrote: > > > > ** **Hi Python / data science friends - > > > > ** **I'm switching to use conda instead of pip, at least for this > > particular > > ** **data science project. I installed pandas, ipython matplotlib, and > > am > > ** **working through the pandas intro: > > ** **[2]http://pandas.pydata.org/pandas-docs/stable/10min.html > > > > ** **Everything seems to be working fine except plotting: > > > > ** **In [35]: ts = pd.Series(np.random.randn(1000), > > ** **index=pd.date_range('1/1/2000', p > > ** ** ** **...: eriods=1000)) > > > > ** **In [36]: ts = ts.cumsum() > > > > ** **In [37]: ts.plot() > > ** **Out[37]: > 0x7f8c78066190> > > > > ** **... and that's it. No window pops up, nothing gets displayed. > > > > ** **I'm running Fedora Linux. > > > > ** **What basic thing am I missing? Was I supposed to install > something > > related > > ** **to Tkinter to plot via tkinter? > > > > ** **Thanks, > > > > ** **David H > > > > _______________________________________________ > > TriZPUG mailing list > > [3]TriZPUG at python.org > > [4]https://mail.python.org/mailman/listinfo/trizpug > > [5]http://tripython.org is the Triangle Python Users Group > > > > References > > > > Visible links > > 1. mailto:david at handysoftware.com > > 2. http://pandas.pydata.org/pandas-docs/stable/10min.html > > 3. mailto:TriZPUG at python.org > > 4. https://mail.python.org/mailman/listinfo/trizpug > > 5. http://tripython.org/ > > > _______________________________________________ > TriZPUG mailing list > TriZPUG at python.org > https://mail.python.org/mailman/listinfo/trizpug > http://tripython.org is the Triangle Python Users Group > -- Rex A. Dwyer -------------- next part -------------- plt.show() **??? On Mon, Jan 21, 2019 at 9:40 PM <[1]trizpug-request at python.org> wrote: Send TriZPUG mailing list submissions to ** ** ** ** [2]trizpug at python.org To subscribe or unsubscribe via the World Wide Web, visit ** ** ** ** [3]https://mail.python.org/mailman/listinfo/trizpug or, via email, send a message with subject or body 'help' to ** ** ** ** [4]trizpug-request at python.org You can reach the person managing the list at ** ** ** ** [5]trizpug-owner at python.org When replying, please edit your Subject line so it is more specific than "Re: Contents of TriZPUG digest..." Today's Topics: ** **1. Reminder: There is no Project Night in Durham tonight ** ** ** (Eric Thomson) ** **2. Help with matplotlib plotting from pandas (installed by ** ** ** conda) (David Handy) ** **3. Re: Help with matplotlib plotting from pandas (installed by ** ** ** conda) (Imran Shah) ** **4. Re:** Help with matplotlib plotting from pandas (installed by ** ** ** conda) (David Handy) ---------- Forwarded message ---------- From:**Eric Thomson <[6]thomson at neuro.duke.edu> To:**"Triangle (North Carolina) Python Users Group (formerly TriZPUG)" <[7]trizpug at python.org> Cc:** Bcc:** Date:**Mon, 21 Jan 2019 21:59:31 +0000 Subject:**[TriPython] Reminder: There is no Project Night in Durham tonight Just a reminder, there is no Project Night in Durham tonight: next one will be February 18th. Have a great night. Eric ________________________________________ From: Eric Thomson Sent: Monday, January 14, 2019 12:57 PM To: Triangle (North Carolina) Python Users Group (formerly TriZPUG) Subject: Cancelled next Monday: Durham Project Night Just in case anyone was planning things around it, I am planning to NOT have Python Project Night in Durham next Monday. In addition to being MLK day, I am going to be flying back from Los Angeles and will not be back until 7pm. Everyone enjoy your holiday, and we will pick it back up on February 18th! Best, Eric ---------- Forwarded message ---------- From:**David Handy <[8]david at handysoftware.com> To:**[9]trizpug at python.org Cc:** Bcc:** Date:**Mon, 21 Jan 2019 19:18:47 -0500 (EST) Subject:**[TriPython] Help with matplotlib plotting from pandas (installed by conda) ** **Hi Python / data science friends - ** **I'm switching to use conda instead of pip, at least for this particular ** **data science project. I installed pandas, ipython matplotlib, and am ** **working through the pandas intro: ** **[10]http://pandas.pydata.org/pandas-docs/stable/10min.html ** **Everything seems to be working fine except plotting: ** **In [35]: ts = pd.Series(np.random.randn(1000), ** **index=pd.date_range('1/1/2000', p ** ** ** **...: eriods=1000)) ** **In [36]: ts = ts.cumsum() ** **In [37]: ts.plot() ** **Out[37]: ** **... and that's it. No window pops up, nothing gets displayed. ** **I'm running Fedora Linux. ** **What basic thing am I missing? Was I supposed to install something related ** **to Tkinter to plot via tkinter? ** **Thanks, ** **David H ---------- Forwarded message ---------- From:**Imran Shah <[11]imran.a.shah at gmail.com> To:**"Triangle (North Carolina) Python Users Group (formerly TriZPUG)" <[12]trizpug at python.org> Cc:** Bcc:** Date:**Mon, 21 Jan 2019 19:29:56 -0500 Subject:**Re: [TriPython] Help with matplotlib plotting from pandas (installed by conda) ** **Have you imported pylab already?** ** **from matplotlib import pyplot as pl ** **-- ** **Imran Shah ** **On Mon, Jan 21, 2019, 7:19 PM David Handy <[1][13]david at handysoftware.com ** **wrote: ** ** **** **Hi Python / data science friends - ** ** **** **I'm switching to use conda instead of pip, at least for this ** ** **particular ** ** **** **data science project. I installed pandas, ipython matplotlib, and ** ** **am ** ** **** **working through the pandas intro: ** ** **** **[2][14]http://pandas.pydata.org/pandas-docs/stable/10min.html ** ** **** **Everything seems to be working fine except plotting: ** ** **** **In [35]: ts = pd.Series(np.random.randn(1000), ** ** **** **index=pd.date_range('1/1/2000', p ** ** **** ** ** **...: eriods=1000)) ** ** **** **In [36]: ts = ts.cumsum() ** ** **** **In [37]: ts.plot() ** ** **** **Out[37]: ** ** **** **... and that's it. No window pops up, nothing gets displayed. ** ** **** **I'm running Fedora Linux. ** ** **** **What basic thing am I missing? Was I supposed to install something ** ** **related ** ** **** **to Tkinter to plot via tkinter? ** ** **** **Thanks, ** ** **** **David H ** ** **_______________________________________________ ** ** **TriZPUG mailing list ** ** **[3][15]TriZPUG at python.org ** ** **[4][16]https://mail.python.org/mailman/listinfo/trizpug ** ** **[5][17]http://tripython.org is the Triangle Python Users Group References ** **Visible links ** **1. mailto:[18]david at handysoftware.com ** **2. [19]http://pandas.pydata.org/pandas-docs/stable/10min.html ** **3. mailto:[20]TriZPUG at python.org ** **4. [21]https://mail.python.org/mailman/listinfo/trizpug ** **5. [22]http://tripython.org/ ---------- Forwarded message ---------- From:**David Handy <[23]david at handysoftware.com> To:**"Triangle (North Carolina) Python Users Group (formerly TriZPUG)" <[24]trizpug at python.org> Cc:** Bcc:** Date:**Mon, 21 Jan 2019 21:30:19 -0500 (EST) Subject:**Re: [TriPython]** Help with matplotlib plotting from pandas (installed by conda) ** **Thank you, yes I did that import already. ** **If I had not, I would have gotten a NameError exception running those ** **commands. ** **Also just now I tried: ** **from IPython.display import display ** **and then: ** **p = ts.plot() ** **display(p) ** **I also tried: ** **In [53]: %matplotlib ** **Using matplotlib backend: Qt5Agg ** **In [54]: p ** **Out[54]: ** **In [55]: display(p) ** ** ** **Nope. ** **I've got to be really close. There's something really basic I'm missing. I ** **have definitely gotten matplotlib to work on this computer before, just ** **never with conda-installed packages. ** **David H ** **On Monday, January 21, 2019 7:29pm, "Imran Shah" <[25]imran.a.shah at gmail.com> ** **said: ** **> _______________________________________________ ** **> TriZPUG mailing list ** **> [26]TriZPUG at python.org ** **> [27]https://mail.python.org/mailman/listinfo/trizpug ** **> [28]http://tripython.org is the Triangle Python Users Group ** **> Have you imported pylab already? ** **> ** **> from matplotlib import pyplot as pl ** **> ** **> ** **> -- ** **> Imran Shah ** **> ** **> On Mon, Jan 21, 2019, 7:19 PM David Handy <[29]david at handysoftware.com ** **wrote: ** **> ** **> > Hi Python / data science friends - ** **> > ** **> > ** **> > ** **> > I'm switching to use conda instead of pip, at least for this ** **particular ** **> > data science project. I installed pandas, ipython matplotlib, and am ** **> > working through the pandas intro: ** **> > [30]http://pandas.pydata.org/pandas-docs/stable/10min.html ** **> > ** **> > ** **> > ** **> > Everything seems to be working fine except plotting: ** **> > ** **> > ** **> > ** **> > In [35]: ts = pd.Series(np.random.randn(1000), ** **> > index=pd.date_range('1/1/2000', p ** **> > ...: eriods=1000)) ** **> > ** **> > In [36]: ts = ts.cumsum() ** **> > ** **> > In [37]: ts.plot() ** **> > Out[37]: ** **> > ** **> > ** **> > ** **> > ... and that's it. No window pops up, nothing gets displayed. ** **> > ** **> > ** **> > ** **> > I'm running Fedora Linux. ** **> > ** **> > ** **> > ** **> > What basic thing am I missing? Was I supposed to install something ** **> > related ** **> > to Tkinter to plot via tkinter? ** **> > ** **> > ** **> > ** **> > Thanks, ** **> > ** **> > David H ** **> > ** **> > ** **> > _______________________________________________ ** **> > TriZPUG mailing list ** **> > [31]TriZPUG at python.org ** **> > [32]https://mail.python.org/mailman/listinfo/trizpug ** **> > [33]http://tripython.org is the Triangle Python Users Group ** **> > ** **> Have you imported pylab already?** ** **> from matplotlib import pyplot as pl ** **> -- ** **> Imran Shah ** **> On Mon, Jan 21, 2019, 7:19 PM David Handy <[1][34]david at handysoftware.com ** **> wrote: ** **> ** **> ** **Hi Python / data science friends - ** **> ** **> ** **I'm switching to use conda instead of pip, at least for this ** **> particular ** **> ** **data science project. I installed pandas, ipython matplotlib, and ** **> am ** **> ** **working through the pandas intro: ** **> ** **[2][35]http://pandas.pydata.org/pandas-docs/stable/10min.html ** **> ** **> ** **Everything seems to be working fine except plotting: ** **> ** **> ** **In [35]: ts = pd.Series(np.random.randn(1000), ** **> ** **index=pd.date_range('1/1/2000', p ** **> ** ** ** **...: eriods=1000)) ** **> ** **> ** **In [36]: ts = ts.cumsum() ** **> ** **> ** **In [37]: ts.plot() ** **> ** **Out[37]: 0x7f8c78066190> ** **> ** **> ** **... and that's it. No window pops up, nothing gets displayed. ** **> ** **> ** **I'm running Fedora Linux. ** **> ** **> ** **What basic thing am I missing? Was I supposed to install something ** **> related ** **> ** **to Tkinter to plot via tkinter? ** **> ** **> ** **Thanks, ** **> ** **> ** **David H ** **> ** **> _______________________________________________ ** **> TriZPUG mailing list ** **> [3][36]TriZPUG at python.org ** **> [4][37]https://mail.python.org/mailman/listinfo/trizpug ** **> [5][38]http://tripython.org is the Triangle Python Users Group ** **> ** **> References ** **> ** **> Visible links ** **> 1. mailto:[39]david at handysoftware.com ** **> 2. [40]http://pandas.pydata.org/pandas-docs/stable/10min.html ** **> 3. mailto:[41]TriZPUG at python.org ** **> 4. [42]https://mail.python.org/mailman/listinfo/trizpug ** **> 5. [43]http://tripython.org/ ** **> _______________________________________________ TriZPUG mailing list [44]TriZPUG at python.org [45]https://mail.python.org/mailman/listinfo/trizpug [46]http://tripython.org is the Triangle Python Users Group -- Rex A. Dwyer References Visible links 1. mailto:trizpug-request at python.org 2. mailto:trizpug at python.org 3. https://mail.python.org/mailman/listinfo/trizpug 4. mailto:trizpug-request at python.org 5. mailto:trizpug-owner at python.org 6. mailto:thomson at neuro.duke.edu 7. mailto:trizpug at python.org 8. mailto:david at handysoftware.com 9. mailto:trizpug at python.org 10. http://pandas.pydata.org/pandas-docs/stable/10min.html 11. mailto:imran.a.shah at gmail.com 12. mailto:trizpug at python.org 13. mailto:david at handysoftware.com 14. http://pandas.pydata.org/pandas-docs/stable/10min.html 15. mailto:TriZPUG at python.org 16. https://mail.python.org/mailman/listinfo/trizpug 17. http://tripython.org/ 18. mailto:david at handysoftware.com 19. http://pandas.pydata.org/pandas-docs/stable/10min.html 20. mailto:TriZPUG at python.org 21. https://mail.python.org/mailman/listinfo/trizpug 22. http://tripython.org/ 23. mailto:david at handysoftware.com 24. mailto:trizpug at python.org 25. mailto:imran.a.shah at gmail.com 26. mailto:TriZPUG at python.org 27. https://mail.python.org/mailman/listinfo/trizpug 28. http://tripython.org/ 29. mailto:david at handysoftware.com 30. http://pandas.pydata.org/pandas-docs/stable/10min.html 31. mailto:TriZPUG at python.org 32. https://mail.python.org/mailman/listinfo/trizpug 33. http://tripython.org/ 34. mailto:david at handysoftware.com 35. http://pandas.pydata.org/pandas-docs/stable/10min.html 36. mailto:TriZPUG at python.org 37. https://mail.python.org/mailman/listinfo/trizpug 38. http://tripython.org/ 39. mailto:david at handysoftware.com 40. http://pandas.pydata.org/pandas-docs/stable/10min.html 41. mailto:TriZPUG at python.org 42. https://mail.python.org/mailman/listinfo/trizpug 43. http://tripython.org/ 44. mailto:TriZPUG at python.org 45. https://mail.python.org/mailman/listinfo/trizpug 46. http://tripython.org/ From francois.dion at gmail.com Tue Jan 22 10:02:27 2019 From: francois.dion at gmail.com (Francois Dion) Date: Tue, 22 Jan 2019 10:02:27 -0500 Subject: [TriPython] Help with matplotlib plotting from pandas (installed by conda) In-Reply-To: <1548127666.810514071@apps.rackspace.com> References: <1548116327.949823308@apps.rackspace.com> <1548127666.810514071@apps.rackspace.com> Message-ID: Glad you got it working. As an additional note: %matplotlib inline is only for the jupyter notebook or the jupyter qtconsole, not ipython etc. %matplotlib notebook is another jupyter notebook only setting giving you some interactivity. There is a default backend and plt.show() should popup something, as long as your terminal has a display set correctly (ie on a remote machine, you'll need to forward X) Francois On Mon, Jan 21, 2019 at 10:37 PM David Handy wrote: > Thanks Art! I had not tried "%matplotlib inline" yet. > > > > When I did that, I got an import error and had to install ipykernel. > > > > Then I got: > > UnknownBackend: No event loop integration for 'inline'. Supported event > loops are: qt, qt4, qt5, gtk, gtk2, gtk3, tk, wx, pyglet, glut, osx > > > > After some googling, I tried: > > %matplotlib tk > > > > ... and then plotting worked! > > > > Thanks, > > David H > > > > On Monday, January 21, 2019 10:13pm, "Art" > said: > > > _______________________________________________ > > TriZPUG mailing list > > TriZPUG at python.org > > https://mail.python.org/mailman/listinfo/trizpug > > http://tripython.org is the Triangle Python Users Group > > Your code works fine for me. I can see the chart. Here're my imports: > > > > import pandas as pd > > import numpy as np > > import matplotlib.pyplot as plt > > %matplotlib inline > > > > - Art. > > > > Art Nestsiarenka > > email: artem.nesterenko at gmail.com > > > > > > > > > > > > On Mon, Jan 21, 2019 at 7:19 PM David Handy > > wrote: > > > > > Hi Python / data science friends - > > > > > > > > > > > > I'm switching to use conda instead of pip, at least for this > particular > > > data science project. I installed pandas, ipython matplotlib, and am > > > working through the pandas intro: > > > http://pandas.pydata.org/pandas-docs/stable/10min.html > > > > > > > > > > > > Everything seems to be working fine except plotting: > > > > > > > > > > > > In [35]: ts = pd.Series(np.random.randn(1000), > > > index=pd.date_range('1/1/2000', p > > > ...: eriods=1000)) > > > > > > In [36]: ts = ts.cumsum() > > > > > > In [37]: ts.plot() > > > Out[37]: > > > > > > > > > > > > ... and that's it. No window pops up, nothing gets displayed. > > > > > > > > > > > > I'm running Fedora Linux. > > > > > > > > > > > > What basic thing am I missing? Was I supposed to install something > > > related > > > to Tkinter to plot via tkinter? > > > > > > > > > > > > Thanks, > > > > > > David H > > > > > > > > > _______________________________________________ > > > TriZPUG mailing list > > > TriZPUG at python.org > > > https://mail.python.org/mailman/listinfo/trizpug > > > http://tripython.org is the Triangle Python Users Group > > > > > Your code works fine for me. I can see the chart. Here're my imports: > > import pandas as pd > > import numpy as np > > import matplotlib.pyplot as plt > > %matplotlib inline > > - Art. > > Art Nestsiarenka > > email: [1]artem.nesterenko at gmail.com > > > > On Mon, Jan 21, 2019 at 7:19 PM David Handy <[2] > david at handysoftware.com> > > wrote: > > > > ** **Hi Python / data science friends - > > > > ** **I'm switching to use conda instead of pip, at least for this > > particular > > ** **data science project. I installed pandas, ipython matplotlib, and > > am > > ** **working through the pandas intro: > > ** **[3]http://pandas.pydata.org/pandas-docs/stable/10min.html > > > > ** **Everything seems to be working fine except plotting: > > > > ** **In [35]: ts = pd.Series(np.random.randn(1000), > > ** **index=pd.date_range('1/1/2000', p > > ** ** ** **...: eriods=1000)) > > > > ** **In [36]: ts = ts.cumsum() > > > > ** **In [37]: ts.plot() > > ** **Out[37]: > 0x7f8c78066190> > > > > ** **... and that's it. No window pops up, nothing gets displayed. > > > > ** **I'm running Fedora Linux. > > > > ** **What basic thing am I missing? Was I supposed to install > something > > related > > ** **to Tkinter to plot via tkinter? > > > > ** **Thanks, > > > > ** **David H > > > > _______________________________________________ > > TriZPUG mailing list > > [4]TriZPUG at python.org > > [5]https://mail.python.org/mailman/listinfo/trizpug > > [6]http://tripython.org is the Triangle Python Users Group > > > > References > > > > Visible links > > 1. mailto:artem.nesterenko at gmail.com > > 2. mailto:david at handysoftware.com > > 3. http://pandas.pydata.org/pandas-docs/stable/10min.html > > 4. mailto:TriZPUG at python.org > > 5. https://mail.python.org/mailman/listinfo/trizpug > > 6. http://tripython.org/ > > > _______________________________________________ > TriZPUG mailing list > TriZPUG at python.org > https://mail.python.org/mailman/listinfo/trizpug > http://tripython.org is the Triangle Python Users Group > -- about.me/francois.dion - www.pyptug.org - www.3DFutureTech.info - @f_dion -------------- next part -------------- Glad you got it working. As an additional note: %matplotlib inline is only for the jupyter notebook or the jupyter qtconsole, not ipython etc. %matplotlib notebook is another jupyter notebook only setting giving you some interactivity. There is a default backend and plt.show() should popup something, as long as your terminal has a display set correctly (ie on a remote machine, you'll need to forward X) Francois On Mon, Jan 21, 2019 at 10:37 PM David Handy <[1]david at handysoftware.com> wrote: ** **Thanks Art! I had not tried "%matplotlib inline" yet. ** **When I did that, I got an import error and had to install ipykernel. ** **Then I got: ** **UnknownBackend: No event loop integration for 'inline'. Supported event ** **loops are: qt, qt4, qt5, gtk, gtk2, gtk3, tk, wx, pyglet, glut, osx ** **After some googling, I tried: ** **%matplotlib tk ** **... and then plotting worked! ** **Thanks, ** **David H ** **On Monday, January 21, 2019 10:13pm, "Art" <[2]artem.nesterenko at gmail.com> ** **said: ** **> _______________________________________________ ** **> TriZPUG mailing list ** **> [3]TriZPUG at python.org ** **> [4]https://mail.python.org/mailman/listinfo/trizpug ** **> [5]http://tripython.org is the Triangle Python Users Group ** **> Your code works fine for me. I can see the chart. Here're my imports: ** **> ** **> import pandas as pd ** **> import numpy as np ** **> import matplotlib.pyplot as plt ** **> %matplotlib inline ** **> ** **> - Art. ** **> ** **> Art Nestsiarenka ** **> email: [6]artem.nesterenko at gmail.com ** **> ** **> ** **> ** **> ** **> ** **> On Mon, Jan 21, 2019 at 7:19 PM David Handy <[7]david at handysoftware.com> ** **> wrote: ** **> ** **> > Hi Python / data science friends - ** **> > ** **> > ** **> > ** **> > I'm switching to use conda instead of pip, at least for this ** **particular ** **> > data science project. I installed pandas, ipython matplotlib, and am ** **> > working through the pandas intro: ** **> > [8]http://pandas.pydata.org/pandas-docs/stable/10min.html ** **> > ** **> > ** **> > ** **> > Everything seems to be working fine except plotting: ** **> > ** **> > ** **> > ** **> > In [35]: ts = pd.Series(np.random.randn(1000), ** **> > index=pd.date_range('1/1/2000', p ** **> > ...: eriods=1000)) ** **> > ** **> > In [36]: ts = ts.cumsum() ** **> > ** **> > In [37]: ts.plot() ** **> > Out[37]: ** **> > ** **> > ** **> > ** **> > ... and that's it. No window pops up, nothing gets displayed. ** **> > ** **> > ** **> > ** **> > I'm running Fedora Linux. ** **> > ** **> > ** **> > ** **> > What basic thing am I missing? Was I supposed to install something ** **> > related ** **> > to Tkinter to plot via tkinter? ** **> > ** **> > ** **> > ** **> > Thanks, ** **> > ** **> > David H ** **> > ** **> > ** **> > _______________________________________________ ** **> > TriZPUG mailing list ** **> > [9]TriZPUG at python.org ** **> > [10]https://mail.python.org/mailman/listinfo/trizpug ** **> > [11]http://tripython.org is the Triangle Python Users Group ** **> > ** **> Your code works fine for me. I can see the chart. Here're my imports: ** **> import pandas as pd ** **> import numpy as np ** **> import matplotlib.pyplot as plt ** **> %matplotlib inline ** **> - Art. ** **> Art Nestsiarenka ** **> email: [1][12]artem.nesterenko at gmail.com ** **> ** **> On Mon, Jan 21, 2019 at 7:19 PM David Handy <[2][13]david at handysoftware.com> ** **> wrote: ** **> ** **> ** **Hi Python / data science friends - ** **> ** **> ** **I'm switching to use conda instead of pip, at least for this ** **> particular ** **> ** **data science project. I installed pandas, ipython matplotlib, and ** **> am ** **> ** **working through the pandas intro: ** **> ** **[3][14]http://pandas.pydata.org/pandas-docs/stable/10min.html ** **> ** **> ** **Everything seems to be working fine except plotting: ** **> ** **> ** **In [35]: ts = pd.Series(np.random.randn(1000), ** **> ** **index=pd.date_range('1/1/2000', p ** **> ** ** ** **...: eriods=1000)) ** **> ** **> ** **In [36]: ts = ts.cumsum() ** **> ** **> ** **In [37]: ts.plot() ** **> ** **Out[37]: 0x7f8c78066190> ** **> ** **> ** **... and that's it. No window pops up, nothing gets displayed. ** **> ** **> ** **I'm running Fedora Linux. ** **> ** **> ** **What basic thing am I missing? Was I supposed to install something ** **> related ** **> ** **to Tkinter to plot via tkinter? ** **> ** **> ** **Thanks, ** **> ** **> ** **David H ** **> ** **> _______________________________________________ ** **> TriZPUG mailing list ** **> [4][15]TriZPUG at python.org ** **> [5][16]https://mail.python.org/mailman/listinfo/trizpug ** **> [6][17]http://tripython.org is the Triangle Python Users Group ** **> ** **> References ** **> ** **> Visible links ** **> 1. mailto:[18]artem.nesterenko at gmail.com ** **> 2. mailto:[19]david at handysoftware.com ** **> 3. [20]http://pandas.pydata.org/pandas-docs/stable/10min.html ** **> 4. mailto:[21]TriZPUG at python.org ** **> 5. [22]https://mail.python.org/mailman/listinfo/trizpug ** **> 6. [23]http://tripython.org/ ** **> _______________________________________________ TriZPUG mailing list [24]TriZPUG at python.org [25]https://mail.python.org/mailman/listinfo/trizpug [26]http://tripython.org is the Triangle Python Users Group -- [27]about.me/francois.dion - [28]www.pyptug.org - [29]www.3DFutureTech.info - [30]@f_dion References Visible links 1. mailto:david at handysoftware.com 2. mailto:artem.nesterenko at gmail.com 3. mailto:TriZPUG at python.org 4. https://mail.python.org/mailman/listinfo/trizpug 5. http://tripython.org/ 6. mailto:artem.nesterenko at gmail.com 7. mailto:david at handysoftware.com 8. http://pandas.pydata.org/pandas-docs/stable/10min.html 9. mailto:TriZPUG at python.org 10. https://mail.python.org/mailman/listinfo/trizpug 11. http://tripython.org/ 12. mailto:artem.nesterenko at gmail.com 13. mailto:david at handysoftware.com 14. http://pandas.pydata.org/pandas-docs/stable/10min.html 15. mailto:TriZPUG at python.org 16. https://mail.python.org/mailman/listinfo/trizpug 17. http://tripython.org/ 18. mailto:artem.nesterenko at gmail.com 19. mailto:david at handysoftware.com 20. http://pandas.pydata.org/pandas-docs/stable/10min.html 21. mailto:TriZPUG at python.org 22. https://mail.python.org/mailman/listinfo/trizpug 23. http://tripython.org/ 24. mailto:TriZPUG at python.org 25. https://mail.python.org/mailman/listinfo/trizpug 26. http://tripython.org/ 27. http://about.me/francois.dion 28. http://www.pyptug.org/ 29. http://www.3dfuturetech.info/ 30. http://twitter.com/f_dion From cbc at unc.edu Tue Jan 22 12:30:48 2019 From: cbc at unc.edu (Calloway, Chris) Date: Tue, 22 Jan 2019 17:30:48 +0000 Subject: [TriPython] Reminder: TriPython January 2019 Meeting: Python Testing With Pytest Message-ID: <590568FF-4468-467B-94D1-B8E9EEB4CBBF@unc.edu> http://tripython.org/Members/cbc/jan-19-mtg Looks like we will have a good-sized crowd for this interesting topic on Thursday for our first talk of the new year. I always love hearing Tim Hopper give a talk. We will probably go to the new Monterey in Ram?s Plaza (a block from RENCI) for the after-meeting. When: Thursday, January 24, 7-9pm Where: Renaissance Computing Institute (RENCI), Biltmore Conference Room, 5th Floor, 100 Europa Drive, Suite 590, Chapel Hill What: ?Tim Hopper will present PyTest. Tim says, "In this talk, I will introduce Pytest, a testing framework for Python (e.g. an alternative to unittest or Nose. Pytest is simple enough to allow you to start writing tests with zero boiler plate, but grows with your project into a powerful solution for even the most complex software projects." Tim Hopper is a senior data scientist at Cylance where he works on machine learning approaches to malware detection. Prior to Cylance, he worked in blocking malicious automated web traffic and developing a Python library for nonparametric Latent Dirichlet Allocation. He has a masters degree in operations research from North Carolina State University. He lives in Raleigh with his wife and energetic 1 year old. Extemporaneous "lightning talks" of 5-10 minute duration are also welcome and don't need to be pre-announced. Lightning talks are for you to "show and tell" something you've learned about Python recently, no matter how small. We all use Python, therefore, we are always learning something new about Python that we can tell others. Plenty of free parking is available in the RENCI parking deck. The meeting will be followed by our usual after-meeting at a nearby tavern for food and beverage. Come join us for a fun and informative evening.? -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute (919) 599-3530 -------------- next part -------------- [1]http://tripython.org/Members/cbc/jan-19-mtg Looks like we will have a good-sized crowd for this interesting topic on Thursday for our first talk of the new year. I always love hearing Tim Hopper give a talk. We will probably go to the new Monterey in Ram's Plaza (a block from RENCI) for the after-meeting. When: Thursday, January 24, 7-9pm Where: Renaissance Computing Institute (RENCI), Biltmore Conference Room, 5th Floor, 100 Europa Drive, Suite 590, Chapel Hill What: "Tim Hopper will present PyTest. Tim says, "In this talk, I will introduce Pytest, a testing framework for Python (e.g. an alternative to unittest or Nose. Pytest is simple enough to allow you to start writing tests with zero boiler plate, but grows with your project into a powerful solution for even the most complex software projects." Tim Hopper is a senior data scientist at Cylance where he works on machine learning approaches to malware detection. Prior to Cylance, he worked in blocking malicious automated web traffic and developing a Python library for nonparametric Latent Dirichlet Allocation. He has a masters degree in operations research from North Carolina State University. He lives in Raleigh with his wife and energetic 1 year old. Extemporaneous "lightning talks" of 5-10 minute duration are also welcome and don't need to be pre-announced. Lightning talks are for you to "show and tell" something you've learned about Python recently, no matter how small. We all use Python, therefore, we are always learning something new about Python that we can tell others. Plenty of free parking is available in the RENCI parking deck. The meeting will be followed by our usual after-meeting at a nearby tavern for food and beverage. Come join us for a fun and informative evening." -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute (919) 599-3530 References Visible links 1. http://tripython.org/Members/cbc/jan-19-mtg From jeremy at fastmail.com Sat Jan 19 11:26:47 2019 From: jeremy at fastmail.com (Jeremy Freeman) Date: Sat, 19 Jan 2019 11:26:47 -0500 Subject: [TriPython] Possible talk (not February) In-Reply-To: References: Message-ID: <916DD47C-BF12-4098-8B8B-A05EAAC7FFE4@fastmail.com> Sounds interesting to me. -- Jeremy > On Jan 19, 2019, at 10:17 AM, Rex Dwyer wrote: > > Some of you may know that I design and make wooden geometric puzzles as a > hobby. I***m not writing to sell puzzles, but I***m really excited that I > ***sold*** my first design to a great craftsman, Brian Menold, and he has > a nice picture on his website woodwondersonline.** > Anyway, I noticed in December that 2018-1958 = 60. 1958 is the year Dana > Scott became the first person to solve a combinatorial puzzle with a > computer. Programming on the MANIAC, he solved one of the Pentomino > puzzles, which continue to be popular among **puzzlers. > Worth noting is the Dana went on to win a Turing Award. I contacted him > recently, and he can still get very excited about pentominos! > So this is a long and possibly gassy way to say that I***ve been designing > new pentomino puzzles using python, and I***d be happy to give a talk on > it later in the year (not February) if anyone is interested. It would be > long on puzzles and algorithms, and very short on cool python packages, so > it***s not going to make you more productive at work. But I can offer door > prizes**** > Incidentally, 2018-1958 = 5x12, and the pentominos consist of a set of 12 > puzzle pieces, each made of 5 cubes.** And, they can be arranged into a > 5x12 rectangle!** Numerology is so cool. > -- > Rex A. Dwyer > _______________________________________________ > TriZPUG mailing list > TriZPUG at python.org > https://mail.python.org/mailman/listinfo/trizpug > http://tripython.org is the Triangle Python Users Group From cbc at unc.edu Tue Jan 22 12:45:32 2019 From: cbc at unc.edu (Calloway, Chris) Date: Tue, 22 Jan 2019 17:45:32 +0000 Subject: [TriPython] Possible talk (not February) In-Reply-To: References: Message-ID: <6409A2D9-95C3-4BCC-9ADE-F3944A7F6BB1@unc.edu> Rex, This sounds great. I don't think a talk should have to introduce cool python packages. Just going through the implementation of your algorithms in Python should be enough to show many people something they didn't already know. We don't have a talk for March yet. February is spoken for. Would you like Thursday March 28 at Caktus? -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute (919) 599-3530 ?On 1/19/19, 10:17 AM, "TriZPUG on behalf of Rex Dwyer" wrote: Some of you may know that I design and make wooden geometric puzzles as a hobby. I?m not writing to sell puzzles, but I?m really excited that I ?sold? my first design to a great craftsman, Brian Menold, and he has a nice picture on his website woodwondersonline. Anyway, I noticed in December that 2018-1958 = 60. 1958 is the year Dana Scott became the first person to solve a combinatorial puzzle with a computer. Programming on the MANIAC, he solved one of the Pentomino puzzles, which continue to be popular among puzzlers. Worth noting is the Dana went on to win a Turing Award. I contacted him recently, and he can still get very excited about pentominos! So this is a long and possibly gassy way to say that I?ve been designing new pentomino puzzles using python, and I?d be happy to give a talk on it later in the year (not February) if anyone is interested. It would be long on puzzles and algorithms, and very short on cool python packages, so it?s not going to make you more productive at work. But I can offer door prizes? Incidentally, 2018-1958 = 5x12, and the pentominos consist of a set of 12 puzzle pieces, each made of 5 cubes. And, they can be arranged into a 5x12 rectangle! Numerology is so cool. -- Rex A. Dwyer From cbc at unc.edu Tue Jan 22 14:29:32 2019 From: cbc at unc.edu (Calloway, Chris) Date: Tue, 22 Jan 2019 19:29:32 +0000 Subject: [TriPython] Help with matplotlib plotting from pandas (installed by conda) In-Reply-To: References: <1548116327.949823308@apps.rackspace.com> <1548127666.810514071@apps.rackspace.com> Message-ID: <755A224E-0B49-48A9-9E8A-1C5FF053324B@unc.edu> You can see available backends with %matplotlib --list. But just because a backend is available doesn't mean it's valid for your current execution environment. If you get "UnknownBackend: No event loop integration for 'inline'," it means you are executing in an iPython shell. Inline and notebook are only valid in Notebooks. You can see what backend is currently in use with matplotlib.get_backend() There are also ways to set the backend at startup in configuration files. Consult documentation for your execution environment for more about that. -- Sincerely, Chris Calloway Applications Analyst University of North Carolina Renaissance Computing Institute (919) 599-3530 ?On 1/22/19, 10:02 AM, "TriZPUG on behalf of Francois Dion" wrote: Glad you got it working. As an additional note: %matplotlib inline is only for the jupyter notebook or the jupyter qtconsole, not ipython etc. %matplotlib notebook is another jupyter notebook only setting giving you some interactivity. There is a default backend and plt.show() should popup something, as long as your terminal has a display set correctly (ie on a remote machine, you'll need to forward X) Francois On Mon, Jan 21, 2019 at 10:37 PM David Handy wrote: > Thanks Art! I had not tried "%matplotlib inline" yet. > > > > When I did that, I got an import error and had to install ipykernel. > > > > Then I got: > > UnknownBackend: No event loop integration for 'inline'. Supported event > loops are: qt, qt4, qt5, gtk, gtk2, gtk3, tk, wx, pyglet, glut, osx > > > > After some googling, I tried: > > %matplotlib tk > > > > ... and then plotting worked! > > > > Thanks, > > David H > > > > On Monday, January 21, 2019 10:13pm, "Art" > said: > > > _______________________________________________ > > TriZPUG mailing list > > TriZPUG at python.org > > https://mail.python.org/mailman/listinfo/trizpug > > http://tripython.org is the Triangle Python Users Group > > Your code works fine for me. I can see the chart. Here're my imports: > > > > import pandas as pd > > import numpy as np > > import matplotlib.pyplot as plt > > %matplotlib inline > > > > - Art. > > > > Art Nestsiarenka > > email: artem.nesterenko at gmail.com > > > > > > > > > > > > On Mon, Jan 21, 2019 at 7:19 PM David Handy > > wrote: > > > > > Hi Python / data science friends - > > > > > > > > > > > > I'm switching to use conda instead of pip, at least for this > particular > > > data science project. I installed pandas, ipython matplotlib, and am > > > working through the pandas intro: > > > http://pandas.pydata.org/pandas-docs/stable/10min.html > > > > > > > > > > > > Everything seems to be working fine except plotting: > > > > > > > > > > > > In [35]: ts = pd.Series(np.random.randn(1000), > > > index=pd.date_range('1/1/2000', p > > > ...: eriods=1000)) > > > > > > In [36]: ts = ts.cumsum() > > > > > > In [37]: ts.plot() > > > Out[37]: > > > > > > > > > > > > ... and that's it. No window pops up, nothing gets displayed. > > > > > > > > > > > > I'm running Fedora Linux. > > > > > > > > > > > > What basic thing am I missing? Was I supposed to install something > > > related > > > to Tkinter to plot via tkinter? > > > > > > > > > > > > Thanks, > > > > > > David H > > > > > > > > > _______________________________________________ > > > TriZPUG mailing list > > > TriZPUG at python.org > > > https://mail.python.org/mailman/listinfo/trizpug > > > http://tripython.org is the Triangle Python Users Group > > > > > Your code works fine for me. I can see the chart. Here're my imports: > > import pandas as pd > > import numpy as np > > import matplotlib.pyplot as plt > > %matplotlib inline > > - Art. > > Art Nestsiarenka > > email: [1]artem.nesterenko at gmail.com > > > > On Mon, Jan 21, 2019 at 7:19 PM David Handy <[2] > david at handysoftware.com> > > wrote: > > > > ** **Hi Python / data science friends - > > > > ** **I'm switching to use conda instead of pip, at least for this > > particular > > ** **data science project. I installed pandas, ipython matplotlib, and > > am > > ** **working through the pandas intro: > > ** **[3]http://pandas.pydata.org/pandas-docs/stable/10min.html > > > > ** **Everything seems to be working fine except plotting: > > > > ** **In [35]: ts = pd.Series(np.random.randn(1000), > > ** **index=pd.date_range('1/1/2000', p > > ** ** ** **...: eriods=1000)) > > > > ** **In [36]: ts = ts.cumsum() > > > > ** **In [37]: ts.plot() > > ** **Out[37]: > 0x7f8c78066190> > > > > ** **... and that's it. No window pops up, nothing gets displayed. > > > > ** **I'm running Fedora Linux. > > > > ** **What basic thing am I missing? Was I supposed to install > something > > related > > ** **to Tkinter to plot via tkinter? > > > > ** **Thanks, > > > > ** **David H > > > > _______________________________________________ > > TriZPUG mailing list > > [4]TriZPUG at python.org > > [5]https://mail.python.org/mailman/listinfo/trizpug > > [6]http://tripython.org is the Triangle Python Users Group > > > > References > > > > Visible links > > 1. mailto:artem.nesterenko at gmail.com > > 2. mailto:david at handysoftware.com > > 3. http://pandas.pydata.org/pandas-docs/stable/10min.html > > 4. mailto:TriZPUG at python.org > > 5. https://mail.python.org/mailman/listinfo/trizpug > > 6. http://tripython.org/ > > > _______________________________________________ > TriZPUG mailing list > TriZPUG at python.org > https://mail.python.org/mailman/listinfo/trizpug > http://tripython.org is the Triangle Python Users Group > -- about.me/francois.dion - www.pyptug.org - www.3DFutureTech.info - @f_dion From artem.nesterenko at gmail.com Thu Jan 24 16:44:59 2019 From: artem.nesterenko at gmail.com (Art) Date: Thu, 24 Jan 2019 16:44:59 -0500 Subject: [TriPython] Ansible and Python Message-ID: Hi guys! I have a quick question for those who have experience in Ansible. I've went through multiple resources, but it didn't really help. I'm using ansible 2.6.4 and python 2.6.6. I have a small working example of an ansible playbook: https://github.com/ArtyomMinsk/ansible_playground/blob/master/python_version.yml where in the first task (line 7) I store the output in the declared variable (line 9) and then in the second task (line 11) I parse the value of that variable (string), do the checking and if True then execute the task (line 13). Is there a way I can pass the value of that variable to custom python script, do the parsing like: def get_python_version(output): return output.split(" ")[-1] and then somehow return the result back to ansible playbook task and do the version checking? If someone can refer me to a good example that would be great. Thank you! Art Nestsiarenka email: artem.nesterenko at gmail.com -------------- next part -------------- Hi guys! I have a quick question**for those who have experience in Ansible. I've went through multiple resources, but it didn't really help. I'm using ansible 2.6.4 and python 2.6.6. I have a small working example of an ansible playbook: [1]https://github.com/ArtyomMinsk/ansible_playground/blob/master/python_version.yml where in the first task (line 7)**I store the output in the declared variable (line 9)**and then in the second task (line 11)**I parse the value of that variable (string), do the**checking and if True then execute the task (line 13).** Is there a way I can pass the value of that variable to custom python script, do the parsing like: def get_python_version(output): ****** return output.split(" ")[-1] and then somehow**return the result back to ansible playbook task and do the version checking? If someone can refer me to a good example that would be great. Thank you! Art Nestsiarenka email: [2]artem.nesterenko at gmail.com References Visible links 1. https://github.com/ArtyomMinsk/ansible_playground/blob/master/python_version.yml 2. mailto:artem.nesterenko at gmail.com From bgerard at gmail.com Thu Jan 24 17:05:07 2019 From: bgerard at gmail.com (Brian Gerard) Date: Thu, 24 Jan 2019 17:05:07 -0500 Subject: [TriPython] Ansible and Python In-Reply-To: References: Message-ID: Actually, you should be able to use the ansible_python_version fact, a la: - name: list all the environment variables command: printenv when: ansible_python_version == '2.6.6' ...with no call to 'python --version' needed. Just change your: gather-facts: no ...line, to: gather-facts: yes It worked for me in a quick test playbook. HTH- Brian PS - Careful if you copy-and-paste that into your playbook - YAML gets very fiddly with whitespace. :) Be sure to double-check it. On 1/24/19 4:44 PM, Art wrote: > Hi guys! > I have a quick question**for those who have experience in Ansible. I've > went through multiple resources, but it didn't really help. > I'm using ansible 2.6.4 and python 2.6.6. I have a small working example > of an ansible playbook: > [1]https://github.com/ArtyomMinsk/ansible_playground/blob/master/python_version.yml > where in the first task (line 7)**I store the output in the declared > variable (line 9)**and then in the second task (line 11)**I parse the > value of that variable (string), do the**checking and if True then execute > the task (line 13).** > Is there a way I can pass the value of that variable to custom python > script, do the parsing like: > def get_python_version(output): > ****** return output.split(" ")[-1] > and then somehow**return the result back to ansible playbook task and do > the version checking? > If someone can refer me to a good example that would be great. > Thank you! > Art Nestsiarenka > email: [2]artem.nesterenko at gmail.com > > References > > Visible links > 1. https://github.com/ArtyomMinsk/ansible_playground/blob/master/python_version.yml > 2. mailto:artem.nesterenko at gmail.com > > > _______________________________________________ > TriZPUG mailing list > TriZPUG at python.org > https://mail.python.org/mailman/listinfo/trizpug > http://tripython.org is the Triangle Python Users Group > From artem.nesterenko at gmail.com Thu Jan 24 20:03:21 2019 From: artem.nesterenko at gmail.com (artem.nesterenko at gmail.com) Date: Thu, 24 Jan 2019 20:03:21 -0500 Subject: [TriPython] Ansible and Python In-Reply-To: References: Message-ID: <48A90C94-B20B-4297-8B31-4DE6DF90A5E1@gmail.com> Thank you Brian! That?s good to know. It makes it way easier in this case. But I?m still curious to know if I can pass something to python script , process and return the result. Sent from my iPhone > On Jan 24, 2019, at 5:05 PM, Brian Gerard wrote: > > Actually, you should be able to use the ansible_python_version fact, a la: > > - name: list all the environment variables > command: printenv > when: ansible_python_version == '2.6.6' > > ...with no call to 'python --version' needed. Just change your: > gather-facts: no > ...line, to: > gather-facts: yes > > It worked for me in a quick test playbook. > > HTH- > Brian > > PS - Careful if you copy-and-paste that into your playbook - YAML gets very > fiddly with whitespace. :) Be sure to double-check it. > >> On 1/24/19 4:44 PM, Art wrote: >> Hi guys! >> I have a quick question**for those who have experience in Ansible. I've >> went through multiple resources, but it didn't really help. >> I'm using ansible 2.6.4 and python 2.6.6. I have a small working example >> of an ansible playbook: >> [1]https://github.com/ArtyomMinsk/ansible_playground/blob/master/python_version.yml >> where in the first task (line 7)**I store the output in the declared >> variable (line 9)**and then in the second task (line 11)**I parse the >> value of that variable (string), do the**checking and if True then execute >> the task (line 13).** >> Is there a way I can pass the value of that variable to custom python >> script, do the parsing like: >> def get_python_version(output): >> ****** return output.split(" ")[-1] >> and then somehow**return the result back to ansible playbook task and do >> the version checking? >> If someone can refer me to a good example that would be great. >> Thank you! >> Art Nestsiarenka >> email: [2]artem.nesterenko at gmail.com >> >> References >> >> Visible links >> 1. https://github.com/ArtyomMinsk/ansible_playground/blob/master/python_version.yml >> 2. mailto:artem.nesterenko at gmail.com >> >> >> _______________________________________________ >> TriZPUG mailing list >> TriZPUG at python.org >> https://mail.python.org/mailman/listinfo/trizpug >> http://tripython.org is the Triangle Python Users Group >> >