<jupyter_start><jupyter_text>Define New MagicsThere is an API to define your own magics. See the source code for the jar: [ShowEnvsCustomMagicCommand.java](https://github.com/twosigma/beakerx/blob/master/kernel/demoProjects/loadMagicJarDemo/src/main/java/com/twosigma/beakerx/custom/magic/command/ShowEnvsCustomMagicCommand.java).<jupyter_code>%classpath add jar ../resources/jar/loadMagicJarDemo.jar
%load_magic com.twosigma.beakerx.custom.magic.command.ShowEnvsCustomMagicCommand
%showEnvs<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.10556621880998081, 'fraction_numerical': 0.0, 'mean_word_length': 7.557377049180328, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, '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}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '463166', 'license': 'Apache-2.0', 'n_tokens_mistral': 190, 'n_tokens_neox': 178, 'n_words': 25, 'path': 'doc/groovy/LoadMagicCommand.ipynb', 'repo_name': 'ssadedin/beakerx', 'size': '521'}