Skip to content
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

Update readme #779

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 6 additions & 4 deletions README.md
Expand Up @@ -48,8 +48,8 @@ to the path of the `python` (or `python3` etc.) executable and then re-running `
In Julia:

ENV["PYTHON"] = "... path of the python executable ..."
# ENV["PYTHON"] = "C:\\Python37-x64\\python.exe" # example for Windows
# ENV["PYTHON"] = "/usr/bin/python3.7" # example for *nix
# ENV["PYTHON"] = "C:\\Python38-x64\\python.exe" # example for Windows
# ENV["PYTHON"] = "/usr/bin/python3" # example for *nix
Pkg.build("PyCall")

Note also that you will need to re-run `Pkg.build("PyCall")` if your
Expand Down Expand Up @@ -144,10 +144,12 @@ which is automatically converted to a Julia type, you will have override this
via `@pywith EXPR::PyObject ...`.

If you are already familiar with Python, it perhaps is easier to use
`py"..."` and `py"""..."""` which are equivalent to Python's
`py"..."` and `py"""..."""` which are equivalent. But as show in example here
equivalent to Python's
[`eval`](https://docs.python.org/3/library/functions.html#eval) and
[`exec`](https://docs.python.org/3/library/functions.html#exec),
respectively:
respectively, and note in the former case to not skip the newline, i.e.
have """ on separate line:

```julia
py"""
Expand Down