Re: [Tutor] Coming from R, what's a good IDE editor? I've tried PyCharm and Spyder

2017-06-03 Thread Mike C
Hi Ben,

I have not used Vim or Emacs for a very long time. I am spoiled by the friendly 
interface of RStudio.

There is a high demand for Python in the industry, but there has not been a 
good IDE. I find that strange.


_
From: Ben Finney mailto:ben+pyt...@benfinney.id.au>>
Sent: Saturday, June 3, 2017 1:50 AM
Subject: Re: [Tutor] Coming from R, what's a good IDE editor? I've tried 
PyCharm and Spyder
To: mailto:tutor@python.org>>


C W mailto:tmrs...@gmail.com>> writes:

> I am an R user learning Python. What is a good editor?

Either of Vim or Emacs – together with a good multi-tabbed terminal
program – make an excellent programmer IDE.

--
\ “When I was a baby I kept a diary. Recently I was re-reading |
`\ it, it said ‘Day 1: Still tired from the move. Day 2: Everybody |
_o__) talks to me like I'm an idiot.’” —Steven Wright |
Ben Finney

___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Coming from R, what's a good IDE editor? I've tried PyCharm and Spyder

2017-06-04 Thread Mike C
Hi Ben,

Yes, I read your suggestion. I should have added the following in my earlier 
message.

Jupyter runs in a web browser like Chrome, and you feed it in line by line, so 
if I want to run a project with a hundred lines, it may take a few.

Anyways, Jupyter is the consensus, and I am trying it.

Thank you!


From: Tutor  on behalf of Ben 
Finney 
Sent: Saturday, June 3, 2017 9:56:05 PM
To: tutor@python.org
Subject: Re: [Tutor] Coming from R, what's a good IDE editor? I've tried 
PyCharm and Spyder

C W  writes:

> In another word, I want to do trial and error, play with the code and
> see what comes out. Not running everything from the top every time.

Already suggested, but I will repeat: You will find that Jupyter
Notebook https://jupyter.org/> is explicitly designed to make that
easy.

--
 \  “Now Maggie, I’ll be watching you too, in case God is busy |
  `\   creating tornadoes or not existing.” —Homer, _The Simpsons_ |
_o__)  |
Ben Finney

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] In matplotlib, why are there axes classes vs. axes API? Why not list them under one documentation?

2018-06-16 Thread Mike C
I can only compare to the R language I've used. If there is an issue, say a 
function freezes at startup, one user brings it up to the list, when the 
respective maintainer sees the bug, it is usually addressed on the next release.

In terms of funding. Isn't Python heavily used in industry, so, financial 
contribution should've been huge, no?



From: Tutor  on behalf of Steven 
D'Aprano 
Sent: Friday, June 15, 2018 8:33:54 PM
To: tutor@python.org
Subject: Re: [Tutor] In matplotlib, why are there axes classes vs. axes API? 
Why not list them under one documentation?

On Fri, Jun 15, 2018 at 12:35:36PM -0400, C W wrote:

> Why haven't the developers fixed the problem?

matplotlib is free, open source software. If volunteers don't "fix the
problem", who is paying for the work to be done?

Are you volunteering?

Or willing to pay somebody to do the work? $30,000 - $50,000 would
probably pay for one developer to work on mathplotlib full time for
three months.

Or maybe the developers don't think it is a problem that needs fixing.
Maybe they're happy with it the way it is.

Or they don't like it any more than you do, but they are constrained by
the need to keep backwards compatibility.


--
Steve
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] pip install in a virtualenv *without* internet?

2015-08-19 Thread Mike C. Fletcher

On 15-08-18 04:10 PM, Albert-Jan Roskam wrote:

Hi,
  
  
I use Python(x y) (Python 2.7) on Win7. I need a higher version of openpyxl, because pandas.Dataframe.to_excel yields an error. So pandas and its own dependencies (e.g. numpy) could remain in the python(x y) site-packages, I just need a higher version of openpyxl without disturbing the x,y installation (I do not even have rights to install stuff there!)
  
So I would like to pip install a openpyxl AND its specific dependencies in a virtualenv.

The problem is that I can't use pip to download the packages from Pypi because 
I do not have a regular internet connection. Is there a generic way to install 
a package and its (pre-downloaded) dependencies, a way that requires little or 
no modifications to the original package?
Using pip 'editable' might help: 
http://stackoverflow.com/questions/15031694/installing-python-packages-from-local-file-system-folder-with-pip.
 I am hoping requirements.txt might somehow be used to install the dependencies 
from a local location --but how?


To install without going out to the internet, you can use these arguments:

pip install --no-index --find-links=/path/to/download/directory 



that *won't* work for git/svn/bzr linked (editable) packages, but should 
work for pre-downloaded "released" packages. If you need the editable 
packages, you'll need to pull the git/whatever repositories and modify 
your requirements file to point to the local git repo. But you likely 
could just do a "python setup.py develop" for them if you've got the 
source downloaded anyway.


I often use this with a separate "download dependencies" stage that 
populates the packages directory so that our build server doesn't hit 
PyPi every time we do a rebuild of our virtualenvs (which we do for 
every testing build).


HTH,
Mike

--

  Mike C. Fletcher
  Designer, VR Plumber, Coder
  http://www.vrplumber.com
  http://blog.vrplumber.com

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] pip install in a virtualenv *without* internet?

2015-08-19 Thread Mike C. Fletcher

On 15-08-19 05:27 AM, Alex Kleider wrote:

On 2015-08-18 19:32, Mike C. Fletcher wrote:

To install without going out to the internet, you can use these 
arguments:


pip install --no-index --find-links=/path/to/download/directory 




For this to work, /path/to/download/directory would, I assume, first 
have to be populated.
I further assume that running wget from within that directory might do 
the trick.

Can you suggest the correct parameter(s) that need to be provided?
If anyone happens to know approximately how much file space would be 
required, that would be helpful.


I'm not sure what packages you are trying to install, so can't answer 
the space question, but the easiest command to populate the directory is 
pip on the internet-connected machine:


pip install --download=~/packages 

now copy that directory onto your USB key (or whatever) and take it to 
the offline machine. If you're planning to do a *lot* of installations, 
you can also use (once you install the wheel package):


pip wheel --no-index --find-links=/path/to/download 

to create fast-installing wheels from each of the dependencies (do that 
on the target machine so that all libraries match).


HTH,
Mike

--
____
  Mike C. Fletcher
  Designer, VR Plumber, Coder
  http://www.vrplumber.com
  http://blog.vrplumber.com

___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor