I usually have some repetitive tasks in my daily work-flow. You probably have some of those too. To save some minutes from your day, you probably write little scripts to do these jobs.
I used to do that... but now I am only writing little IPython notebooks to do these simple jobs, I call them ipyscripts (yes, I won a prize for originality, he he!).
These ipyscripts are IPython-powered, so we can use all the IPython's machinery to do complex things in a simple way...
OK, logging my trades in the forex market, as I promised in the last post.
FYI, I am a daily trader, so you will see me holding positions over several days. Last week, I performed some real account trades accordingly to my models, opening positions at several currencies pairs. You can see the detailed information in the table below:
After some weeks of silence, he he... I come back with a short post about live trading in the forex market. As you probably know [if not, you are knowing it right now ;-)], one of my interests is the analysis, modeling and forecasting of financial time series. To make it short, I have developed some statistical models to forecast the dynamic of selected portfolios. Currently, I am trading equities and other more complex financial derivatives. But my models are also suitable to apply to other markets, ie. the foreign exchange market (yes... forex). So, I made a quick research on some interesting forex pairs and then I started a little account to perform some live trades accordingly to these models. And now, I pretend to log the trades from this little account in a subset of post on my blog, a sort of public live trading logbook.
OK, we can start the logging right now! I opened two short positions some days ago:
The idea of this blog post is to show you how you can achieve an efficient bidirectional workflow to write your blog posts using great tools/features derived from IPython and Nikola.
Probably, this would be interesting not only for the people using IPython and Nikola to write their blog post, but also to other people because this would be a simple but nice example of how you can integrate this two applications to better suit your needs.
OK, first of all, let's go to the folder containing my blog:
Some days ago, I presented a way to mimic the execution of nbconverted IPython notebooks (ipynb). Today, I will show you how to add a simple minimap to these static html documents.
But, what is a minimap? Do you know SublimeText or Ninja-IDE? They are IDEs with a thin column to the right (of the main window) which provides an overview of the code we are working on... OK, you don't have an idea what am I talking about? Just go ahead and you will see...
To build his site, Jake wrote an Hyde plugin to render ipynb files to static html files using the
IPython.convert platform. You can see an example of the final rendered document here.
When I saw the final document, I wondered if we could have hidden output cells which automatically get visible after a click over the input cell... and then, I made some experiments using the power of the
IPython.nbconvert library ;-)
Just a quick update... Some weeks ago I blogged about my new Nikola's theme family called Zen. In fact, you are seeing the
zen-ipython theme powering my blog right now.
I have used them for several days without any remarkable issue, so I decided to release them at the Nikola's theme repository.
There, you will see three Zen themes:
zen, based in mako templates
zen-jinja, the same zen theme but based (obviously) in jinja templates
zen-ipython, a jinja-based zen theme suited to be used with the IPython notebooks.
As you know (if not, probably the following lines gives you an idea), vIPer was originally designed to export from ipynb files to:
- a plain static html
- a slideshow powered by Landslide
With the last release, IPython support this kind of exportation using the well designed and easily extensible
IPython.nbconvert library. Now, it is easier to incorporate the IPython machinery inside vIPer and support the exportation to several formats.