Import PackageName as pn

Hi:

As a Python user, I am really comfortable with

import PackageName as pn
like:
import pandas as pd
import numpy as np
etc…

Is there similar in Julia or planned in the future? It really helps to not mess up name spaces & find available method etc… And, I guess I can always do PackageName.{method}, but that’s verbose.
Thanks,

Sam,

1 Like

const pn = PackageName

5 Likes

There is an open issue on this topic: https://github.com/JuliaLang/julia/issues/1255. I think this will not be in Julia 1.0 but may be added in the future (at least, I hope so).

https://github.com/fredrikekre/ImportMacros.jl

Close enough. Thank u,

Put in my .juliarc.jl, as soon as I saw it. Will be constantly used with great appreciation! :smiley: