In Jupyter notebook, how to change auto indent to tab instead of 4 spaces
<p>I just started using jupyter notebook. Google search didn't help. Thanks!</p>

<p><strong>Update: Quick Summary of answers</strong></p>

<p>Running the following code in a cell before you start a ipython file got the task done for me. One problem is that we have to run this everytime for each file.</p>

<pre>

    %%javascript

    // apply setting to all current CodeMirror instances
    IPython.notebook.get_cells().map(
        function(c) {  return c.code_mirror.options.indentWithTabs=true;  }
    );

    // make sure new CodeMirror instances created in the future also use this setting
    CodeMirror.defaults.indentWithTabs=true;

</pre>