Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't load https://computationalthinking.mit.edu/Fall23/homework/hw1/ from local Pluto.jl #2776

Closed
flymeout11 opened this issue Jan 16, 2024 · 1 comment

Comments

@flymeout11
Copy link

Thank you for reporting an issue about Pluto! Let's get it fixed!
Failed to load notebook
The notebook from https://computationalthinking.mit.edu/Fall23/homework/hw1/ could not be loaded. Please report this error!

Go back

Error message:

File is not a Pluto.jl notebook
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:35
[2] _notebook_metadata!(io::IO)
@ Pluto C:\Users\Administrator.julia\packages\Pluto\KkVLI\src\notebook\saving and loading.jl:162
[3] load_notebook_nobackup(io::IO, path::AbstractString)
@ Pluto C:\Users\Administrator.julia\packages\Pluto\KkVLI\src\notebook\saving and loading.jl:307
[4] #87
@ Pluto C:\Users\Administrator.julia\packages\Pluto\KkVLI\src\notebook\saving and loading.jl:333 [inlined]
[5] open(::Pluto.var"#87#88"{String}, ::String, ::Vararg{String}; kwargs::@kwargs{})
@ Base .\io.jl:396
[6] open
@ Base .\io.jl:393 [inlined]
[7] load_notebook_nobackup(path::String)
@ Pluto C:\Users\Administrator.julia\packages\Pluto\KkVLI\src\notebook\saving and loading.jl:332
[8] load_notebook(path::String; disable_writing_notebook_files::Bool)
@ Pluto C:\Users\Administrator.julia\packages\Pluto\KkVLI\src\notebook\saving and loading.jl:351
[9] load_notebook
@ C:\Users\Administrator.julia\packages\Pluto\KkVLI\src\notebook\saving and loading.jl:341 [inlined]
[10] open(session::Pluto.ServerSession, path::String; execution_allowed::Bool, run_async::Bool, compiler_options::Nothing, as_sample::Bool, risky_file_source::String, clear_frontmatter::Bool, notebook_id::Base.UUID)
@ Pluto.SessionActions C:\Users\Administrator.julia\packages\Pluto\KkVLI\src\webserver\SessionActions.jl:68
[11] open
@ C:\Users\Administrator.julia\packages\Pluto\KkVLI\src\webserver\SessionActions.jl:44 [inlined]
[12] open_url(session::Pluto.ServerSession, url::String; kwargs::@kwargs{execution_allowed::Bool, as_sample::Bool, risky_file_source::String})
@ Pluto.SessionActions C:\Users\Administrator.julia\packages\Pluto\KkVLI\src\webserver\SessionActions.jl:38
[13] open_url
@ C:\Users\Administrator.julia\packages\Pluto\KkVLI\src\webserver\SessionActions.jl:22 [inlined]
[14] (::Pluto.var"#try_launch_notebook_response#343"{Pluto.var"#try_launch_notebook_response#337#344"{Pluto.ServerSession}})(action::typeof(Pluto.SessionActions.open_url), path_or_url::String; as_redirect::Bool, title::String, advice::String, home_url::String, action_kwargs::@kwargs{execution_allowed::Bool, as_sample::Bool, risky_file_source::String})
@ Pluto C:\Users\Administrator.julia\packages\Pluto\KkVLI\src\webserver\Router.jl:23
[15] (::Pluto.var"#serve_openfile#346"{Pluto.ServerSession})(request::HTTP.Messages.Request)
@ Pluto C:\Users\Administrator.julia\packages\Pluto\KkVLI\src\webserver\Router.jl:65
[16] (::HTTP.Handlers.Router{typeof(Pluto.default_404), typeof(HTTP.Handlers.default405), Nothing})(req::HTTP.Messages.Request)
@ HTTP.Handlers C:\Users\Administrator.julia\packages\HTTP\bDoga\src\Handlers.jl:439
[17] (::Pluto.var"#330#332"{HTTP.Handlers.Router{typeof(Pluto.default_404), typeof(HTTP.Handlers.default405), Nothing}})(request::HTTP.Messages.Request)
@ Pluto C:\Users\Administrator.julia\packages\Pluto\KkVLI\src\webserver\Authentication.jl:101
[18] #327
@ C:\Users\Administrator.julia\packages\Pluto\KkVLI\src\webserver\Authentication.jl:53 [inlined]
[19] (::Pluto.var"#430#440"{Pluto.ServerSession, Pluto.var"#327#329"{Pluto.var"#330#332"{HTTP.Handlers.Router{typeof(Pluto.default_404), typeof(HTTP.Handlers.default405), Nothing}}, Pluto.ServerSession}})(http::HTTP.Streams.Stream{HTTP.Messages.Request, HTTP.Connections.Connection{Sockets.TCPSocket}})
@ Pluto C:\Users\Administrator.julia\packages\Pluto\KkVLI\src\webserver\WebServer.jl:274
[20] #invokelatest#2
@ .\essentials.jl:887 [inlined]
[21] invokelatest
@ .\essentials.jl:884 [inlined]
[22] handle_connection(f::Function, c::HTTP.Connections.Connection{Sockets.TCPSocket}, listener::HTTP.Servers.Listener{Nothing, Sockets.TCPServer}, readtimeout::Int64, access_log::Nothing)
@ HTTP.Servers C:\Users\Administrator.julia\packages\HTTP\bDoga\src\Servers.jl:450
[23] (::HTTP.Servers.var"#16#17"{Pluto.var"#430#440"{Pluto.ServerSession, Pluto.var"#327#329"{Pluto.var"#330#332"{HTTP.Handlers.Router{typeof(Pluto.default_404), typeof(HTTP.Handlers.default405), Nothing}}, Pluto.ServerSession}}, HTTP.Servers.Listener{Nothing, Sockets.TCPServer}, Set{HTTP.Connections.Connection}, Int64, Nothing, Base.Semaphore, HTTP.Connections.Connection{Sockets.TCPSocket}})()
@ HTTP.Servers C:\Users\Administrator.julia\packages\HTTP\bDoga\src\Servers.jl:386

@fonsp
Copy link
Owner

fonsp commented Jan 17, 2024

Thanks for the issue! It looks like you copied the wrong URL

You can read the notebook at https://computationalthinking.mit.edu/Fall23/homework/hw1/

Then click the EDIT OR RUN button at the top right, and follow those instructions, copying the link provided in the dialog, which should look like

https://computationalthinking.mit.edu/Fall23/generated_assets/hw1_395530a6.jl

@fonsp fonsp closed this as completed Jan 17, 2024
fonsp added a commit that referenced this issue Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants