Import PackageName as pn


#1

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,


#2

const pn = PackageName


#3

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).


#4

#5

Close enough. Thank u,


#6

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