+ Reply to Thread
Results 1 to 22 of 22

Thoughts on Python? Tips?

  1. #1
    Forum Contributor JP Romano's Avatar
    Join Date
    10-09-2008
    Location
    Princeton, NJ
    MS-Off Ver
    2010
    Posts
    500

    Thoughts on Python? Tips?

    I have a HUGE amount of respect for the people on this forum, so I thought maybe I could get your opinions to see how far off the mark I am.

    I work in an environment which is becoming increasingly riddled with data scientists. The kind who are in their early-mid 20's and have multiple PHD's. The kind who discuss progress in the neural networks they're programming at home in their spare time. They're everywhere.

    The rest of us are being pressed to pick up Python - many of whom are 'getting it' after just series of online tutorials. Many others, like myself, are not. I find it horribly unintuitive and struggle to get even the basic entry level stuff to work without hours of rage inducing focus. I've done numerous tutorials, watched videos, and posted on Python forums, and am really having a hard time. VBA is so much more readable and logical to me.

    The only advantage I see with Python is that it can handle large files much more quickly (I'm not talking about using it for deep machine learning here, just processing basic data). I suppose having access to the libraries is nice, but how do you even know what's in them? Ugh.

    Anyway, I'm just wondering if the challenges in converting your thinking from VBA to Python has left any of you bewildered, confused, and humiliated, as it has for me. Or have you been able to pick it up and do anything useful with it?

    Thanks for any input!

  2. #2
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Thoughts on Python? Tips?

    I am not sure what is giving you grief? Are you using Python with Intellisense? That was the only thing that bugged me when I first looked at this language.
    https://stackoverflow.com/questions/...d-intellisense
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

  3. #3
    Forum Contributor JP Romano's Avatar
    Join Date
    10-09-2008
    Location
    Princeton, NJ
    MS-Off Ver
    2010
    Posts
    500

    Re: Thoughts on Python? Tips?

    Thanks for the link - and yes, that's part of it. My company is telling us to go to Python training, which I've done, but they have no recommended platform (python version & editor for windows), so I've been through a few trying to find one that works for me. There was no real explanation of the syntax in our training, either. Just "python is better than VBA now go to treehouse.com and do some videos. If you need more help, go to learningtree.com and codeacademy.com or ask somebody here for help."

    I can't figure out what libraries have which functions, and what operations can be done on which objects (and because I'm not good with the python syntax and structure, I don't even know the right ways to ask for things -- very frustrating). In the past 3 months, I've been asked to work on 5 different projects, each of which COULD be done in Python, but after a couple of weeks, I'd just give up and do in VBA so they'd be done!

    Anyway, I guess I'm in the minority of those people who just have a mental block against it or something. But I'm going to keep trying!
    Thanks for your time :-)

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Thoughts on Python? Tips?

    I had tried to learn Python when it was a buzz word, 2 or 3 years ago. I think it is a great language and the best one for big data. However, the "Space or Tab" indenting was a complete switch-off for me. There were not many IDE's while I was learning and the one which comes with software is absolute crap. I think having a good IDE plays a crucial factor in learning a new programming language. Visual Studio, IMO, is not only one of the best, but it is the "BEST" IDE I have ever come across. In fact, looking back. If I had known Visual Studio, my attitude of Python would have been changed. The last time I checked the popularity of languages, Python was no longer the top animal- no one can catch JavaScript.
    Last edited by AB33; 06-28-2017 at 01:54 PM.

  5. #5
    Forum Contributor JP Romano's Avatar
    Join Date
    10-09-2008
    Location
    Princeton, NJ
    MS-Off Ver
    2010
    Posts
    500

    Re: Thoughts on Python? Tips?

    AB33 - thank you for your reply. Interestingly, I'm also being asked to pick up Javascript, so I can help support another project. Haven't done much with it yet, and have been so put off of any/all programming because of my experiences with Python that I've been a bit of a procrastinator. I'm not a developer, engineer, or anything like that. I'm a career QA guy, who has picked up bits and pieces of VBA and SQL so I could build little desktop solutions. Until Python came into my life, I loved doing it - now I cringe when I touch the entrance door at the office complex. I just don't get the language!

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Thoughts on Python? Tips?

    Hi Romano,
    I understand your frustrations. I have been on your shoes, so I completely get it. My opinion: If you want to learn object based or oriented programming languages (OOP), bin VBA first or put it under mattress. Research over many years have shown that people who had programmed in procedural languages struggle to get to grips with OOP. It is not that because they are terrible or bad, rather, the biggest obstacle and challenge is “Set of Mind” OOP requires a complete separate set of minds. You hardly use conditional if statements and loops. Objects are the center of universe, while procedural or structured languages are largely about loops and goto statements. Yes, VBA has an object based approach, but most people hardly know or use custom objects. You might have spent your entire career using VBA's built- in functions and do not need to create your classes. I wish if I had spent learning VBA classes from the start. VBA classes have most of classical OOPs concepts, except inheritance. It was too late and too little to waste my time on VBA classes now. If you have a good solid foundation on OOPs, you can easily learn most OOPs languages. JavaScript (JS) is an OOP, but does not have classes. Java and C# are class based languages. You are forced to use and learn classes and objects. I think you should try to get the community version of Visual studio- it is free and the best IDE to learn JS and Python. You will not be distracted by download this or that third party libraries. Everything you need to learn is on a single platform.
    Last edited by AB33; 06-28-2017 at 01:57 PM.

  7. #7
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Thoughts on Python? Tips?

    AB33

    Where's Python on the Community Edition of VS?
    If posting code please use code tags, see here.

  8. #8
    Registered User
    Join Date
    06-08-2017
    Location
    NJ, USA
    MS-Off Ver
    2016
    Posts
    13

    Re: Thoughts on Python? Tips?

    You know, since I'm going to have to pick up multiple languages, and the UI seems to be pretty robust, perhaps I should go with Visual Studio. I'm lucky that my company has licensing for pretty much all of the more popular IDE's, so I can try out the full version.

  9. #9
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Thoughts on Python? Tips?

    Norie,
    I used it over three years ago. If you download the default version of VS, you might not get the full version of Python and you might need to download a couple of other libraries. You need to choose a custom version when you download VS and follow the instructions.
    A link which might help you setting and running up Python in VS

    https://www.youtube.com/watch?v=_okU..._YeTdEnd23s6Ff
    Last edited by AB33; 06-28-2017 at 01:59 PM.

  10. #10
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Thoughts on Python? Tips?

    Romano,
    That would be the icing on the cake. With profession version of VS, you get the full monty.

  11. #11
    Forum Contributor JP Romano's Avatar
    Join Date
    10-09-2008
    Location
    Princeton, NJ
    MS-Off Ver
    2010
    Posts
    500

    Re: Thoughts on Python? Tips?

    I've had it for all of 11 minutes and I'm already about to throw my pc out the window!

    All I want to do is write a script
    print("Hello World") and see "Hello World" it some kind of console window. Not launch a command prompt and 'press any key to continue' - just like an "immediate" window in VBA.

    All the new project options are for web development or machine learning - I'm not doing either!
    Ugh.

    Time to uninstall and keep looking for something that is simple, logical, and easy to use for people without a damn PHD!

  12. #12
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Thoughts on Python? Tips?

    I do not know how you are using VS. VS is a text editor with extra functionality. At the end of day, your source code must go through Python's compiler or interpreter. Did you check the link I send to Norie? Before you make a rush decision, please watch some YouTube videos on how to use Python in VS. Just type in "python in visual studio 2017" in YouTube and you can find many clips on how to use Python in VS.
    Last edited by AB33; 06-28-2017 at 02:03 PM.

  13. #13
    Forum Contributor JP Romano's Avatar
    Join Date
    10-09-2008
    Location
    Princeton, NJ
    MS-Off Ver
    2010
    Posts
    500

    Re: Thoughts on Python? Tips?

    AB33, yes, I did, and am grateful. I do apologize. My experience with Python has been an absolute nightmare from start to finish. I like the idea of having one IDE for vb, javascript, and python, so I'm going to try again tomorrow - too angry now to focus and be rational!

    I started watching some of the videos on their help page,but none address the issues I'm trying to get past - perhaps I'm not just far enough along :-)

    Appreciate your time and thoughts!

  14. #14
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Thoughts on Python? Tips?

    Like, VBA editor, VS has all the debugging tools. I cannot comment on Python, but I use it daily for C# and any web development languages. So far, I have never downloaded any third-party tools outside VS. jQuery, Bootstrap and other 3rdparty tools are found with just a single click. I think you should spend some time familiarizing yourself with VS. You do not need to read hundreds of pages of manual instructions. There are hundreds YouTube videos which can help you and speed the learning process.
    I am sure in VS, there is a simple console window which prints hello world. In C# for instance. System.Console.WriteLine("Hello World");
    I am pretty sure, you can print a console Python statement in VS.
    Last edited by AB33; 06-28-2017 at 02:05 PM.

  15. #15
    Forum Contributor JP Romano's Avatar
    Join Date
    10-09-2008
    Location
    Princeton, NJ
    MS-Off Ver
    2010
    Posts
    500

    Re: Thoughts on Python? Tips?

    Well, I had to go ahead and uninstall it - just couldn't get it to even run the scripts I had already written a few weeks ago in notepad ... back to the drawing board. Again.

    Thanks to all for your thoughts and recommendations! The good news is that I was able to preorder my headstone which saved my family a bunch of $. It reads, simply "Thanks Python!"

    :-)

  16. #16
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Thoughts on Python? Tips?

    Romano,
    Why are you writing Python code in Notepad? Why can you not use IDEL? I am pretty sure IDEL is much better than Notepad. There are many other IDEs'-both free and paid. I can not seem to remember the name of a company which has a very good IDE for Python. Have you tried Eclipse?

    http://noeticforce.com/best-python-i...indows-and-mac

    I suspect the issue you have is much more deeper than IDE. Perhaps, your state of mind is NOT ready to learn.
    Last edited by AB33; 06-28-2017 at 03:49 PM.

  17. #17
    Forum Contributor JP Romano's Avatar
    Join Date
    10-09-2008
    Location
    Princeton, NJ
    MS-Off Ver
    2010
    Posts
    500

    Re: Thoughts on Python? Tips?

    That's a very fair and excellent point. The language cannot be anywhere close to as horrible as I've made it out to be in my own head.... it really can't be!

    I clearly have a mental block with Python... lately the mere mention of it evokes a visceral and borderline violent reaction (lately = past 14 months). I've tried, sincerely, to get it to work, repeatedly, and just cannot understand it. It's frustrating, humiliating, and honestly, is giving me reason to consider changing jobs (I've been with this company for 12 years, through quite a lot of ups and downs, but nothing comes close to this).

    In any event, I am grateful for all of the recommendations from the fine people here - your willingness to spare so much of your time and the benefits of your experiences is inspiring and doesn't go unnoticed. Thank you again and have a great day!

  18. #18
    Forum Expert
    Join Date
    06-25-2009
    Location
    Sofia, Bulgaria, EU
    MS-Off Ver
    Excel 2003-2013
    Posts
    1,290

    Re: Thoughts on Python? Tips?

    Being active member both here and on python-forum.io, just want to mention we have/had same discussion with JP there and members there offered both advise and suggestions for IDE and Python distribution. I'm sorry he has this mental block with Python and it prevents him to benefit from the language.
    and @AB33: IDLE is terrible IDE/REPL.
    Notepad++ (that is what I suggested to JP as basic IDE) is way better with some plug-ins installed.
    And I think you mean JetBrains PyCharm (both Community and Pro-version). They have IDEs for other languages too.
    There are some more IDE (e.g. Atom) that are also good and don't have the learning curve that comes with more advanced IDe like PyCharm.
    If you are pleased with a member's answer then use the Star icon to rate it.

  19. #19
    Forum Contributor JP Romano's Avatar
    Join Date
    10-09-2008
    Location
    Princeton, NJ
    MS-Off Ver
    2010
    Posts
    500

    Re: Thoughts on Python? Tips?

    Hi Buran, thanks for chiming in here as well - it's nice to see that there are people who can successfully make the leap between the two languages.

    I've decided that it's time to delete everything related to Python from my PC and just walk away from it until I have an actual need. I've dismantled my internal support group, deleted my reference pages, and revoked my registration for additional training.

    If my management insists, or if I have a problem than cannot be solved with VBA/SQL, then I may consider giving it another try - but until then, I'm simply done. I tried, a lot, but am sick of the daily humiliation.

    I sincerely, and honestly appreciate all of the various recommendations here and on the python forum from people who are clearly better adapted for this kind of stuff than an old hound like myself :-)

  20. #20
    Forum Expert
    Join Date
    06-25-2009
    Location
    Sofia, Bulgaria, EU
    MS-Off Ver
    Excel 2003-2013
    Posts
    1,290

    Re: Thoughts on Python? Tips?

    JP, don't take it so bad - it's just not your cup of tea... Think of the people that are no good at programming at all...

  21. #21
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Thoughts on Python? Tips?

    Hi Buran,
    IDEL is indeed a terrible IDE. This was the point I made in my first or second post. I will not make any further comment on suitability of Python language. I might or might not look in to it in the near future.

    Hi Romano,
    You may try to learn a different language- like JavaScript (JS). This might help you to release or unlock the mental block you have with Python. You do not need any special IDE or software (compiler) to learn JS. Notepad or Notepad++ will do.

  22. #22
    Forum Expert
    Join Date
    06-25-2009
    Location
    Sofia, Bulgaria, EU
    MS-Off Ver
    Excel 2003-2013
    Posts
    1,290

    Re: Thoughts on Python? Tips?

    Quote Originally Posted by AB33 View Post
    Hi Buran,
    IDEL is indeed a terrible IDE. This was the point I made in my first or second post.
    sorry, I missed that...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Porting Python code to VB?
    By Rhudi in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-26-2016, 01:17 PM
  2. python in excel
    By idandush in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-05-2015, 04:26 PM
  3. Can you use (or compile?) Python code in Excel
    By mrvp in forum The Water Cooler
    Replies: 7
    Last Post: 06-08-2014, 06:49 AM
  4. call a python script from excel vba
    By sheffieldlad in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-28-2013, 07:11 PM
  5. Python commands in Excel
    By ljoseph in forum Excel General
    Replies: 0
    Last Post: 09-18-2009, 07:02 AM
  6. Excel and Python
    By davidlawrence in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-24-2008, 08:42 AM
  7. Tool tips or screen tips
    By Andrew B in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-27-2006, 02:50 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1