Create a new wordcloud operator using Python wordcloud library - #2157
Merged
Conversation
…roportional to the window size
…e library does not fail
…operator-requirements.txt instead
Yicong-Huang
added a commit
that referenced
this pull request
Sep 28, 2023
Following up on #2157, this PR adds a dependency file `operator-requirements.txt`, which declares the dependencies used in native Python operators.
yangzhang75
pushed a commit
to yangzhang75/texera
that referenced
this pull request
Jun 22, 2026
…e#2157) This PR introduces a new operator using the [Python wordcloud library](https://github.com/amueller/word_cloud) to generate a wordcloud. **PLEASE NOTE** In order to use this operator, the user must install the wordcloud library. To facilitate this, a `operator-requirements.txt` file has been created under `core/amber`. In the future, this file will contain python libraries that are required to use python native operators (apache#2143). For now, simply run `pip install -r operator-requirements.txt` to install the wordcloud library. Currently, the operator is named "Word Cloud V2" and includes the same inputs as the existing wordcloud operator, such as the text column and the maximum number of words to display. The output of the new operator is an HTML string with the wordcloud image embedded, allowing users to view the wordcloud directly from the operator. The new wordcloud operator generates a fixed-size image with a resolution of 1920 x 1080. Additionally, it includes digits as words in the wordcloud and uses the stopwords provided in the wordcloud library. However, we may plan to improve this feature by allowing users to customize these parameters. In the new operator, we have removed the "Normalization Scale" feature as users can easily identify which words are more frequent based on the image generated by the new operator. This decision was made after a group meeting. Lastly, this pull request includes enhancing the existing image visualizer operator. The change allows the image to be resized based on the window size.  --------- Co-authored-by: Xinyuan Lin <xinyual3@uci.edu>
yangzhang75
pushed a commit
to yangzhang75/texera
that referenced
this pull request
Jun 22, 2026
Following up on apache#2157, this PR adds a dependency file `operator-requirements.txt`, which declares the dependencies used in native Python operators.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces a new operator using the Python wordcloud library to generate a wordcloud.
PLEASE NOTE
In order to use this operator, the user must install the wordcloud library. To facilitate this, a
operator-requirements.txtfile has been created undercore/amber. In the future, this file will contain python libraries that are required to use python native operators (#2143). For now, simply runpip install -r operator-requirements.txtto install the wordcloud library.Currently, the operator is named "Word Cloud V2" and includes the same inputs as the existing wordcloud operator, such as the text column and the maximum number of words to display. The output of the new operator is an HTML string with the wordcloud image embedded, allowing users to view the wordcloud directly from the operator.
The new wordcloud operator generates a fixed-size image with a resolution of 1920 x 1080. Additionally, it includes digits as words in the wordcloud and uses the stopwords provided in the wordcloud library. However, we may plan to improve this feature by allowing users to customize these parameters.
In the new operator, we have removed the "Normalization Scale" feature as users can easily identify which words are more frequent based on the image generated by the new operator. This decision was made after a group meeting.
Lastly, this pull request includes enhancing the existing image visualizer operator. The change allows the image to be resized based on the window size.