Yes, all the while keeping a state, like regular jupyter.
Does swift have args and kwargs concepts?
anything like args , kwargs in swift ?
You can define a function with a default argument value.
You have labelled arguments or unlabeled arguments, but not *args or **kwargs that you can shove down another function.
Not yet…
Can real
and imag
be different type? like real
being float, and imag
being int?
In this case, they’re required to be the same type. You can write the code slightly differently to allow them to be independent if you’d like.
For example:
struct Complex<T: SignedNumeric, U: SignedNumeric> {
var real: T
var imag: U
}
Nope, not with one generic. You could define a struct with two generic types however.
How did you learn Swift and write all those notebooks without a debugger?! #respect
Fortunately there was the whole S4TF team to help
How does a +
operator work if you are adding two different types where the LHS object and RHS object have different implementations of +
?
I’m guessing import Python
gets its python libraries (eg matplotlib) from the python environment that was active when you started Jupyter?
Does tab complete and shift+tab work?
So with python interop in S4TF one could use Pytorch right?
The environment you linked your installation to.
How does typing work with Python-imported objects?
Tab complete works! We’ll do shift+tab eventually!
How are types imported from Python into Swift if Python is untyped?
They will answer that question really soon