JuliaPy / JuliaPy/PythonCall.jl

[docs][PythonCall] document syntax for "from ... import ..."

Open
#453 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Julia
Stars
1.1k
Forks
86
Avg merge
1d 22h
Merged PRs (30d)
3

Description

It took me some digging through the issues to discover that the python import
```python
from x import f as g
```
can be translated in julia to
```julia
using PythonCall
@py import x: f as g
```
Can this be added to the PythonCall's guide in the documentation?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the PythonCall guide in the documentation and find the section covering Python imports. Add the documented Julia syntax for translating “from ... import ...” with an alias, using the example from the issue; the guide should clearly show the equivalent Python and Julia forms.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia, python
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.