Python

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

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

Cloudera AI 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 AI 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