Python

In the default Python engine, Cloudera Machine Learning supports most line magics, but no cell magics.

Cloudera Machine Learning supports the shell magic !: for example, !ls -alh /home/cdsw.

Cloudera Machine Learning supports the help magics ? and ??: for example, ?numpy and ??numpy. ? displays the docstring for its argument. ?? attempts to print the source code. You can get help on magics using the ? prefix: for example, ?%timeit.

Cloudera Machine Learning supports the line magics listed at https://ipython.org/ipython-doc/3/interactive/magics.html#line-magics, with the following exceptions:
  • %colors
  • %debug
  • %edit
  • %gui
  • %history
  • %install_default_config
  • %install_profiles
  • %lsmagic
  • %macro
  • %matplotlib
  • %notebook
  • %page
  • %pastebin
  • %pdb
  • %prun
  • %pylab
  • %recall
  • %rerun
  • %save
  • %sc