Skip to content

Conversation

@xiuliren
Copy link

@xiuliren xiuliren commented Feb 7, 2017

correspond to the issue
#39.
#62

tkf added a commit to tkf/pyjulia that referenced this pull request May 16, 2018
This makes `from julia import <Julia module>` works without the initial
setup.  Note that a custom setup can still be done by calling
`julia.Julia` with appropriate arguments *before* trying to import Julia
modules.

closes JuliaPy#39, JuliaPy#79
tkf added a commit to tkf/pyjulia that referenced this pull request May 16, 2018
This makes `from julia import <Julia module>` works without the initial
setup.  Note that a custom setup can still be done by calling
`julia.Julia` with appropriate arguments *before* trying to import Julia
modules.

closes JuliaPy#39, JuliaPy#79
tkf added a commit to tkf/pyjulia that referenced this pull request May 16, 2018
This makes `from julia import <Julia module>` works without the initial
setup.  Note that a custom setup can still be done by calling
`julia.Julia` with appropriate arguments *before* trying to import Julia
modules.

closes JuliaPy#39, JuliaPy#79
tkf added a commit to tkf/pyjulia that referenced this pull request Jun 20, 2018
This makes `from julia import <Julia module>` works without the initial
setup.  Note that a custom setup can still be done by calling
`julia.Julia` with appropriate arguments *before* trying to import Julia
modules.

closes JuliaPy#39, JuliaPy#79
tkf added a commit to tkf/pyjulia that referenced this pull request Jul 31, 2018
This makes `from julia import <Julia module>` works without the initial
setup.  Note that a custom setup can still be done by calling
`julia.Julia` with appropriate arguments *before* trying to import Julia
modules.

closes JuliaPy#39, JuliaPy#79
stevengj pushed a commit that referenced this pull request Aug 1, 2018
* Make module loading lazy

* Catch less in JuliaModule.__getattr__

* Support star import

* Special handling for Main module

It adds an easier way to set variables in Julia's global namespace:

>>> from julia import Main
>>> Main.xs = [1, 2, 3]

* Deprecate Julia.__getattr__ (and make it lazy)

fixes #144

* Initialize Julia in JuliaModuleLoader if required

This makes `from julia import <Julia module>` works without the initial
setup.  Note that a custom setup can still be done by calling
`julia.Julia` with appropriate arguments *before* trying to import Julia
modules.

closes #39, #79

* More interfaces to JuliaMainModule

* Document the new API

* Properly remove prefix

* Fix JuliaModule.__all__; add .__dir__

* Cache original os.environ for tests

* Simplify JuliaModule.__try_getattr

* Add LegacyJulia to break infinite recursion

* Don't import in isamodule

Otherwise, trying to access undefined variables such as
`julia.Base.__path__` produces a warning from Julia before
`JuliaModule.__getattr__` raising `AttributeError`.

* Remove core._orig_env; it can be done in test code

* Use Enums as example sub-module

as Base.REPL was pulled out from Base in Julia 0.7.

* More import tests

* Remove noop code

* Fix wording
@tkf
Copy link
Member

tkf commented Aug 1, 2018

I think this is fixed by #162 and can be closed.

@tkf tkf closed this Aug 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants