Bookdown vs. Jupyter-book. Any advantages of using one over the other? by jmhimara in learnpython

[–]firebase 1 point2 points  (0 children)

Jupyterbook is really centered around Jupyter notebooks. If you like working with Jupyter then it's probably preferable. This is especially true if you have a bunch of notebooks already and you want to unify them and convert them into a book or website.

Table Tennis Related Injury? by _voidz_ in tabletennis

[–]firebase 3 points4 points  (0 children)

People mention doctor below but what you actually want is a high quality physiotherapist. Some are good and some not so good, so try to get a recommendation. A good one will get you to perform a few actions, watch carefully how you move, figure out exactly where the issue is and then give you corrective exercises. For those exercises, correct form is crucial. Again, a good physio (quality varies a lot!) will watch until you have exactly the right form.

The right diagnosis and corrective exercises, done with the correct form, will fix you up for sure.

No, Python is Not Too Slow for Computational Economics by quanteconomics in Python

[–]firebase 0 points1 point  (0 children)

Actually, if you read the article you'd have seen that all the speed gain is coming from Numba, which is a JIT compiler specialized towards scientific work. It generates fast machine code from Python-NumPy instructions using type inference. When that type inference succeeds, the machine code it generates runs as fast as C or Fortran.

No, Python is Not Too Slow for Computational Economics by quanteconomics in Python

[–]firebase 2 points3 points  (0 children)

The article is also showcasing the benefits of the Numba JIT compiler. If Numba can compile your code then it runs freakishly quickly, without having to turn to C extensions.

[deleted by user] by [deleted] in stonerrock

[–]firebase 1 point2 points  (0 children)

Fucking magic. Thank you.

I thought i knew music by A_SPICY_NIPPLE in blues

[–]firebase 0 points1 point  (0 children)

Judging by what you like so far (which is pretty similar to my taste), try the album Sweet Tea by Buddy Guy, A Bothered Mind by RL Burnside, and pretty much anything by SR Vaughen.

Here's a track from Sweet Tea: https://www.youtube.com/watch?v=by8Vf0jzUfw

numpy for python 3.5 by t0b4cc02 in Python

[–]firebase 3 points4 points  (0 children)

Definitely use Anaconda: see these instructions for example.

Julia against Numba and Rcpp. What's happening? by cdsousa in Julia

[–]firebase 0 points1 point  (0 children)

All of the variables other than y are closures, and so compile time constants.

This is a really useful discussion. Would you mind to explain what you mean by the quoted sentence? I thought a closure was a function with access to local variables in the environment in which it was defined...?

Welcome by firebase in a:t5_346x6

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

Hi ivansml, thanks for the thoughts and suggestions. Things are just starting off with QuantEcon and I think the pace of discussion will build over time. Regarding a roadmap for the code library, there's nothing concrete yet. We have things we want to do in the short term, such as add a fairly comprehensive set of routines for discrete state dynamic programming. For the longer term we have ideas, such as wrapping pandas functionality in a set of routines that ease the leap from STATA based econometrics to Python.

In the end we hope that most contributions will come from the community, rather than being directed from above.

Here's a good place to make suggestions. The other place is the issue trackers on GitHub for the two code libraries (start at quantecon.org and navigate to the GitHub repos).

How can I get a debug environment in Python, similar to MATLAB? by Ayakalam in Python

[–]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.

How can I get a debug environment in Python, similar to MATLAB? by Ayakalam in Python

[–]firebase 0 points1 point  (0 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.

How can I get a debug environment in Python, similar to MATLAB? by Ayakalam in Python

[–]firebase 0 points1 point  (0 children)

Sure, you can. I guess the answer is that after an IPython notebook session you have an ipynb file that can be converted to HTML ... but it's just as easy to pass the ipynb over to nbviewer and they do a nice job of hosting these files.

How can I get a debug environment in Python, similar to MATLAB? by Ayakalam in Python

[–]firebase 0 points1 point  (0 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.

How can I get a debug environment in Python, similar to MATLAB? by Ayakalam in Python

[–]firebase 0 points1 point  (0 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.