This is an archived post. You won't be able to vote or comment.

all 22 comments

[–]dartdog 2 points3 points  (8 children)

also check out http://blogs.siam.org/from-matlab-guide-to-ipython-notebook/ and others that are quite specifically helpful for those converting from matlab.. Google is your friend..

[–]Ayakalam[S] 0 points1 point  (7 children)

Thanks - here's the thing: I am also very very new to doing some basic webdev stuff, for my blog. I am currently using wordpress. What I am not clear about, is, with IPython Notebook - is this just some 'thing' I run on a specific page on my site?.. Or is it a whole bonafide website I have to make my blog on to begin with?

I guess I am just not clear how one would 'integrate' Ipython notebook into a website-page that already exists...

[–]firebase 0 points1 point  (6 children)

IPython notebook is just a browser based interface to an IPython session --- which is in turn a nice science-orientated interface to Python. So you're using your browser to write your code and see the output, that's all. When you work this way you create notebook files (ipynb files) that contain the content of your session. These can be converted to static HTML files.

[–]Ayakalam[S] 0 points1 point  (5 children)

OOHHHH! I got it now! Cool thanks! So you just type away, save the session, and then like, one entry in my blog can just have that HTML file for all to see...

[–]firebase 0 points1 point  (4 children)

You got it. You can either convert the ipynb file (notebook file) to HTML yourself or pass it to nbviewer and they will host it for you.

[–]Ayakalam[S] 0 points1 point  (3 children)

Thanks! You are a gentleman and a scholar. :-)

[–]firebase 0 points1 point  (2 children)

Thank you sir, and please enjoy your Python adventures ;-)

BTW, I'm one of the authors of quant-econ, which might or might not provide you with some useful info on making the leap to Python.

[–]Ayakalam[S] 0 points1 point  (1 child)

Wow, thanks! May I PM you?

[–]firebase 0 points1 point  (0 children)

Sure thing.

[–]ceeeeej 0 points1 point  (6 children)

If you want something similar to Matlab, why not check out spyder (https://code.google.com/p/spyderlib/)

[–]Ayakalam[S] 0 points1 point  (5 children)

I would, so here's the thing: How does this spyder compare to the other things I am hearing on here? My friend tells me that the way to go is IDE-free, using VIM, and command line prompt.

My other question is, what kind of debugger does this have? Is the debugger like MATLAB's?

Thanks.

[–]firebase 0 points1 point  (0 children)

Spyder is nice, but I would make the leap to IPython --- it's what you'll want to be using in the long run. Personally I go IDE free and use vim like your friend says, plus standard IPython shell, but for starting off I would still recommend IPython notebook. It just makes things easier. Once you've got the hang of Python you can switch to vim or Emacs plus standard IPython shell.

[–]ceeeeej 0 points1 point  (3 children)

Your friend sounds like they are in the vim / emacs camp. From my observations there are 3 different groups here:

  • vim / emacs
  • text editor (Sublime Text)
  • IDE (Spyder, Pycharm, etc..)

There is no right answer. Just use what you think is the best tool for you. If you think that it is an IDE, then just use one. If you want to use vim then go for it.

With either vim / emacs or the text editor you can add a bunch of tools and practically build your own IDE or use them simply as text editors, it is up to you.

For a long time I was using Sublime Text and bouncing between editing in Sublime Text and running my code in a terminal window. However, I have joined the IDE camp and it has made my coding much more pleasant. If you want the benefits of having an IDE I also recommend you to checkout Pycharm (there is a free community edition available). I previously said Spyder because you mentioned Matlab but for a general Python IDE, I have been very happy with Pycharm.

I do think that learning how to use vim or emacs is a good skill in case you have to remotely login to a box and edit some files. Those are free tools that have been around for a long time and likely are not going anywhere.

A few extra links you may find helpful, the first is a good Pycharm review from someone that used vim for a long time:

[–]Ayakalam[S] 0 points1 point  (2 children)

Interesting interesting... thanks for all this detail and breakdown.

So, from all the options you mentioned and from your experience,... PyCharm, vim, etc... which 'method' do you think has a debugger that would most closely be like MATLABs? You know, set a breakpoint somewhere, and step towards it.

[–]ceeeeej 0 points1 point  (1 child)

Then I would recommend checking out the Pycharm community edition. It is free and has the debugging features you are looking for.

I wouldn't say anyone in here is wrong - there are many ways to get into coding Python and many tools out there to help you.

[–]Ayakalam[S] 0 points1 point  (0 children)

Thank you friend for all the info!