<commit_before>== iRuby notebooks

This notebooks are powered by {Ruby kernel}[https://github.com/SciRuby/iruby/] for {IPython/Jupyter}[https://jupyter.org/].
I placed them here to show some GnuplotRB's capabilities and ways of using it together with iRuby.

=== Installation
To use gnuplot gem with iRuby you need to install them both.

* iRuby installation is covered in its {README}[https://github.com/SciRuby/iruby/blob/master/README.md].
  It also covers installation of iPython and other dependecies.
* GnuplotRB gem installation covered in {README}[https://github.com/dilcom/pilot-gnuplot#installation] too.

=== Usage

Now you can use gnuplot gem to plot graphs to files and just open them with File::open to make iRuby render them. Example:
  plot = Plot.new('sin(x)')
  plot.to_pngcairo('plot.png')
  File.open('plot.png')

More natural way is to allow iRuby render Plottable objects itself:
  graph = Plot.new('sin(x)')
  graph

or just
  Plot.new('sin(x)')<commit_msg>update notebook readme<commit_after>== iRuby notebooks

This notebooks are powered by {Ruby kernel}[https://github.com/SciRuby/iruby/] for {IPython/Jupyter}[https://jupyter.org/].
I placed them here to show some GnuplotRB's capabilities and ways of using it together with iRuby.

=== Installation
To use gnuplot gem with iRuby you need to install them both.

* iRuby installation is covered in its {README}[https://github.com/SciRuby/iruby/blob/master/README.md].
  It also covers installation of iPython and other dependecies.
* GnuplotRB gem installation covered in {README}[https://github.com/dilcom/pilot-gnuplot#installation] too.

=== Usage

Using GnuplotRB inside iRuby notebooks is covered in {basic usage notebook}[https://github.com/dilcom/gnuplotrb/blob/master/notebooks/basic_usage.ipynb].
{'fraction_non_alphanumeric': 0.10668163952835485, 'fraction_numerical': 0.0, 'mean_word_length': 4.766990291262136, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 9, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5733395', 'n_tokens_mistral': 609, 'n_tokens_neox': 563, 'n_words': 188}