Visual Studio Code with Python auto-formatting

I was writing python code and facing issues with formatting. It becomes a problem with code review and toolings to detect these issues. Life is much easier with formatter integrated with your code editor and auto-fix those issues on save. Here is how to do: First, install yapf from Google as a formatter: pip install… Continue reading Visual Studio Code with Python auto-formatting

Setup Django server with Apache virtual host and Python virtual environment

It took me a while to get everything works together, so I would like to document some of the steps and save you some time in the future. First of all, assuming that you already have your CentOS / Ubuntu instance running and python already available. Then create a folder for your project with corresponding… Continue reading Setup Django server with Apache virtual host and Python virtual environment

Install Jupyter Notebook in Mac OS X

I’m using Anaconda way to install the jupyter notebook. Firstly go to the website: https://www.continuum.io/downloads After download and install using the Graphical installer, if you try to run: jupyter notebook You will probably get an error: zsh: command not found: jupyter This is because: zsh: command not found: conda To solve this, use your favorite… Continue reading Install Jupyter Notebook in Mac OS X