Great. Would you mind opening an issue with PyJulia requesting this feature
and linking back to this thread?

On Fri, Jun 19, 2015 at 12:56 PM, Verdi March <[email protected]> wrote:

> Thanks, Stefan.
>
> I can confirm that once Julia loads the Clustering module, then Python can
> import this module.
>
> import julia
> j = julia.Julia()
> j.call("using Clustering")
> from julia import Clustering
>
>
> Regards,
> Verdi
>
>
> On Friday, June 19, 2015 at 10:32:23 PM UTC+8, Stefan Karpinski wrote:
>>
>> You probably need to load the Clustering package in Julia first.
>> Arguably, that should happen automatically when doing `from julia import
>> Clustering` with PyJulia.
>>
>> On Fri, Jun 19, 2015 at 5:50 AM, Verdi March <[email protected]> wrote:
>>
>>> Hi,
>>>
>>> I'm trying to call Julia functions from Python.
>>>
>>> I follow the PyJulia example by Jake Bolewski (here
>>> <https://groups.google.com/d/msg/julia-dev/-B90BrkzM6E/dbiRVm5EeRYJ>),
>>> but I couldn't get it to work:
>>>
>>> $ python -c 'from julia import Clustering'
>>> Traceback (most recent call last):
>>>   File "<string>", line 1, in <module>
>>> ImportError: cannot import name Clustering
>>>
>>>
>>> The Clustering module is already installed; I can use it from within
>>> Julia. I'm not sure what steps are still missing, but it'd be great if
>>> anyone can shed some lights.
>>>
>>> Regards,
>>> Verdi
>>>
>>
>>

Reply via email to