-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Issue 5518][docs] Update docs mainly for Python API #5536
[Issue 5518][docs] Update docs mainly for Python API #5536
Conversation
site2/docs/functions-develop.md
Outdated
@@ -35,6 +35,20 @@ def process(input): | |||
``` | |||
For complete code, see [here](https://github.com/apache/pulsar/blob/master/pulsar-functions/python-examples/native_exclamation_function.py). | |||
|
|||
Note that functions can be written in python2 or python3, but Pulsar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note
You can write Pulsar Functions in python2 or python3. However, Pulsar only looks forpython
as the interpreter.
If you're running Pulsar Functions on Ubuntu system that only supports
python3
, you might fail to
start the functions. In this case, you can create a symlink. Your system will fail if
you have ever installed any other package that depends on Python 2.x. A solution is under development in Issue 5518.
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Accepted, except I prefer "Your system will fail if you subsequently install any other package that depends on Python 2.x" (since by definition, if you've already installed a package which depends on python 2.x, you will already have "python" and Pulsar will use it)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, if so, you can use "Your system will fail if you subsequently install any other package that depends on Python 2.x".
Fix #5518 |
I think best if I now hand this branch over to @jennifer88huang for any further edits. Going back and forth is not a good use of time for either of us. |
@jennifer88huang can you take over @candlerb branch and work on proofreading it? |
@sijie Sure. |
Replacement for #5531
Fix #5518
This one also removes functions-api.md and functions-state.md (most of the latter moved to functions-develop.md)