In python you can do something like this to let you use a shortened module name:
>>> import tensorflow as tf
From then on you can refer to tf, instead of having to type tensorflow everywhere.
Is something like this possible in Juila?
Julia now supports renaming with as.
Yep, you can just assign the module to a new name.
import JSON
const J = JSON
J.print(Dict("Hello, " => "World!"))
I highly recommend to use the const because otherwise there will be a performance penalty. (With the const, there is no performance penalty.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With