Skip to content

Commit

Permalink
update README instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed Dec 19, 2024
1 parent a363da9 commit 5151177
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 18 deletions.
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,24 @@

## Installation instructions

This package resides in the `ITensor/ITensorRegistry` local registry.
In order to install, simply add that registry through your package manager.
This step is only required once.
```julia
julia> using Pkg: Pkg

julia> Pkg.add(url="https://github.com/ITensor/BroadcastMapConversion.jl")

julia> Pkg.add(url="https://github.com/ITensor/NestedPermutedDimsArrays.jl")

julia> Pkg.add(url="https://github.com/ITensor/TypeParameterAccessors.jl")

julia> Pkg.add(url="https://github.com/ITensor/SparseArraysBase.jl")
julia> Pkg.Registry.add(url="https://github.com/ITensor/ITensorRegistry")
```
or:
```julia
julia> Pkg.Registry.add(url="git@github.com:ITensor/ITensorRegistry.git")
```
if you want to use SSH credentials, which can make it so you don't have to enter your Github ursername and password when registering packages.

julia> Pkg.add(url="https://github.com/ITensor/TensorAlgebra.jl")
Then, the package can be added as usual through the package manager:

julia> Pkg.add(url="https://github.com/ITensor/NamedDimsArrays.jl")
```julia
julia> Pkg.add("NamedDimsArrays")
```

## Examples
Expand Down
26 changes: 17 additions & 9 deletions examples/README.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,29 @@

# ## Installation instructions

# This package resides in the `ITensor/ITensorRegistry` local registry.
# In order to install, simply add that registry through your package manager.
# This step is only required once.
#=
```julia
julia> using Pkg: Pkg
julia> Pkg.add(url="https://github.com/ITensor/BroadcastMapConversion.jl")
julia> Pkg.add(url="https://github.com/ITensor/NestedPermutedDimsArrays.jl")
julia> Pkg.add(url="https://github.com/ITensor/TypeParameterAccessors.jl")
julia> Pkg.add(url="https://github.com/ITensor/SparseArraysBase.jl")
julia> Pkg.Registry.add(url="https://github.com/ITensor/ITensorRegistry")
```
=#
# or:
#=
```julia
julia> Pkg.Registry.add(url="[email protected]:ITensor/ITensorRegistry.git")
```
=#
# if you want to use SSH credentials, which can make it so you don't have to enter your Github ursername and password when registering packages.

julia> Pkg.add(url="https://github.com/ITensor/TensorAlgebra.jl")
# Then, the package can be added as usual through the package manager:

julia> Pkg.add(url="https://github.com/ITensor/NamedDimsArrays.jl")
#=
```julia
julia> Pkg.add("NamedDimsArrays")
```
=#

Expand Down

0 comments on commit 5151177

Please sign in to comment.