<commit_before>.. _userguide_export:

Exporting Plots
===============

Additional dependencies
-----------------------

In order to use the |export| functions, users have to install some
additional dependencies. These dependencies can be installed via conda:

.. code-block:: sh

    conda install selenium phantomjs pillow

Alternatively, you can install phantomjs from npm via

.. code-block:: sh

    npm install -g phantomjs-prebuilt

Note that the minimum compatible version of PhantomJS is 2.1, regardless of
how it is installed.

.. _userguide_export_png:

PNG Generation<commit_msg>Pillow is already a bokeh dependency (#9192)<commit_after>.. _userguide_export:

Exporting Plots
===============

Additional dependencies
-----------------------

In order to use the |export| functions, users have to install some
additional dependencies. These dependencies can be installed via conda:

.. code-block:: sh

    conda install selenium phantomjs

Alternatively, you can install phantomjs from npm via

.. code-block:: sh

    npm install -g phantomjs-prebuilt

Note that the minimum compatible version of PhantomJS is 2.1, regardless of
how it is installed.

.. _userguide_export_png:

PNG Generation
{'fraction_non_alphanumeric': 0.11544850498338871, 'fraction_numerical': 0.006644518272425249, 'mean_word_length': 3.599236641221374, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '4427820', 'n_tokens_mistral': 354, 'n_tokens_neox': 315, 'n_words': 138}