Turn off auto-closing parentheses in ipython

@minrk’s answer is the meat and bones of the fix, but you’ll need to wrap it in an initialization callback, at least with IPython-3.1.0. In your custom.js: require([‘base/js/namespace’, ‘base/js/events’], function(IPython, events) { events.on(‘app_initialized.NotebookApp’, function() { IPython.CodeCell.options_default.cm_config.autoCloseBrackets = false; }); }); Thanks @Mike for your comment about IPython’s RequireJS dependency loading and the pointer to a … Read more

Can I access python variables within a `%%bash` or `%%script` ipython notebook cell?

Python variables can be accessed in the first line of a %%bash or %%script cell, and so can be passed as command line parameters to the script. For example, with bash you can do this: %%bash -s “$myPythonVar” “$myOtherVar” echo “This bash script knows about $1 and $2” The -s command line option allows you … Read more

Automatically run %matplotlib inline in IPython Notebook

The configuration way IPython has profiles for configuration, located at ~/.ipython/profile_*. The default profile is called profile_default. Within this folder there are two primary configuration files: ipython_config.py ipython_kernel_config.py Add the inline option for matplotlib to ipython_kernel_config.py: c = get_config() # … Any other configurables you want to set c.InteractiveShellApp.matplotlib = “inline” matplotlib vs. pylab Usage … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)