Opening a Pluto notebook from the command line #2725
-
I normally start Pluto via this little Julia script, works on both Linux and macOS:
How do you start Pluto? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Note that the way in which the kernel and |
Beta Was this translation helpful? Give feedback.
-
Here is mine (it's a bash function): pluto() {
PLUTO_ARGS="dismiss_update_notification=true, require_secret_for_open_links=true, require_secret_for_access=true"
case "$2" in
yes) REVISE="using Revise;" ;;
*) REVISE="" ;;
esac
if [[ -d "$HOME/Projects/Pluto.jl" ]]; then
PLUTO_PROJECT=$HOME/Projects/Pluto.jl
else
PLUTO_PROJECT=@pluto
fi
julia --threads=auto --project=$PLUTO_PROJECT -e "
$REVISE
import Pluto;
notebook_to_open = \"$1\"
if length(notebook_to_open) == 0
Pluto.run($PLUTO_ARGS)
else
@info \"opening notebook\" notebook_to_open
Pluto.run(notebook=notebook_to_open, $PLUTO_ARGS)
end
"
} It checks if the folder |
Beta Was this translation helpful? Give feedback.
-
The (Does anyone know of a good reason why |
Beta Was this translation helpful? Give feedback.
Here is mine (it's a bash function):
It checks if the f…