<jupyter_start><jupyter_text>Jupiter Ada kernelThe kernel accepts an Ada program piece by piece. A piece could be:1. A sequence of [context clauses](http://www.ada-auth.org/standards/rm12_w_tc1/html/RM-10-1-2.htmlS0253):<jupyter_code>with Ada.Text_IO;<jupyter_output><empty_output><jupyter_text>2. A sequence of [declarative items](http://www.ada-auth.org/standards/rm12_w_tc1/html/RM-3-11.htmlS0087) to be elaborated:<jupyter_code>Name : constant String := "World";<jupyter_output><empty_output><jupyter_text>3. A sequence of [statements](http://www.ada-auth.org/standards/rm12_w_tc1/html/RM-5-1.htmlS0146) to be executed:<jupyter_code>Ada.Text_IO.Put_Line ("Hello " & Name);<jupyter_output><empty_output><jupyter_text>Note: If one of declarative item requires a completion, then it should be in the same cell:<jupyter_code>package P is
   procedure Proc;
end;

package body P is
   procedure Proc is
   begin
      Ada.Text_IO.Put_Line ("Here is Proc!");
   end;
end;<jupyter_output><empty_output><jupyter_text>There are also some "magic" commands:<jupyter_code>%lsmagic<jupyter_output><empty_output><jupyter_text>You can use `%alr` magic command to install dependencies from the[Ada Library Repository](https://alire.ada.dev/). Only shared libraryprojects are supported.<jupyter_code>%alr -q with spawn<jupyter_output><empty_output><jupyter_text>After installing a crate with `%alr` you can use its units in `with` clauses:<jupyter_code>with Spawn.Environments;
Ada.Text_IO.Put_Line (Spawn.Environments.System_Environment.Contains ("PATH")'Image);<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1208860759493671, 'fraction_numerical': 0.02088607594936709, 'mean_word_length': 6.865671641791045, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, 'https://': 1, 'lorem ipsum': 0, 'www.': 3, '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}}
{'chain_length': '7', 'dir': 'jupyter-structured-clean-dedup', 'id': '531410', 'license': 'MIT', 'n_tokens_mistral': 597, 'n_tokens_neox': 567, 'n_words': 118, 'path': 'nb/Hello_Ada.ipynb', 'repo_name': 'reznikmm/ada-howto', 'size': '1580'}