Skip to content

import Distributed; Distributed.@everywhere x = 2 does not work #28966

Closed
@cossio

Description

@cossio

This works fine:

using Distributed; @everywhere x = 2

but

import Distributed; Distributed.@everywhere x = 2
# ERROR: LoadError: UndefVarError: @everywhere not defined

gives an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    parallelismParallel or distributed computation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions