Failed to load notebook
HerClau opened this issue · 9 comments
Failed to load notebook
The file D:\Julia SoftWare\18S191 SUBMISSION\hw0 (1).jl could not be loaded. Please report this error!
Go back
Error message:
File is not a Pluto.jl notebook
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] load_notebook_nobackup(::IOStream, ::String) at C:\Users\user.julia\packages\Pluto\qC4PK\src\notebook\Notebook.jl:113
[3] #8 at C:\Users\user.julia\packages\Pluto\qC4PK\src\notebook\Notebook.jl:164 [inlined]
[4] open(::Pluto.var"#8#9"{String}, ::String, ::Vararg{String,N} where N; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at .\io.jl:325
[5] open at .\io.jl:323 [inlined]
[6] load_notebook_nobackup(::String) at C:\Users\user.julia\packages\Pluto\qC4PK\src\notebook\Notebook.jl:163
[7] load_notebook(::String) at C:\Users\user.julia\packages\Pluto\qC4PK\src\notebook\Notebook.jl:180
[8] open(::Pluto.ServerSession, ::String; run_async::Bool) at C:\Users\user.julia\packages\Pluto\qC4PK\src\webserver\SessionActions.jl:16
[9] open at C:\Users\user.julia\packages\Pluto\qC4PK\src\webserver\SessionActions.jl:10 [inlined]
[10] (::Pluto.var"#try_launch_notebook_response#96"{Pluto.var"#try_launch_notebook_response#85#97"{Pluto.ServerSession}})(::String; title::String, advice::String, home_url::String) at C:\Users\user.julia\packages\Pluto\qC4PK\src\webserver\Static.jl:63
[11] (::Pluto.var"#serve_openfile#99")(::HTTP.Messages.Request) at C:\Users\user.julia\packages\Pluto\qC4PK\src\webserver\Static.jl:92
[12] handle(::HTTP.Handlers.RequestHandlerFunction{Pluto.var"#serve_openfile#99"}, ::HTTP.Messages.Request) at C:\Users\user.julia\packages\HTTP\atT5q\src\Handlers.jl:253
[13] handle(::HTTP.Handlers.Router{Symbol("##253")}, ::HTTP.Messages.Request) at C:\Users\user.julia\packages\HTTP\atT5q\src\Handlers.jl:467
[14] (::Pluto.var"#190#196"{Pluto.ServerSession,HTTP.Handlers.Router{Symbol("##253")}})(::HTTP.Streams.Stream{HTTP.Messages.Request,HTTP.ConnectionPool.Transaction{Sockets.TCPSocket}}) at C:\Users\user.julia\packages\Pluto\qC4PK\src\webserver\WebServer.jl:123
[15] handle at C:\Users\user.julia\packages\HTTP\atT5q\src\Handlers.jl:269 [inlined]
[16] #4 at C:\Users\user.julia\packages\HTTP\atT5q\src\Handlers.jl:345 [inlined]
[17] macro expansion at C:\Users\user.julia\packages\HTTP\atT5q\src\Servers.jl:367 [inlined]
[18] (::HTTP.Servers.var"#13#14"{HTTP.Handlers.var"#4#5"{HTTP.Handlers.StreamHandlerFunction{Pluto.var"#190#196"{Pluto.ServerSession,HTTP.Handlers.Router{Symbol("##253")}}}},HTTP.ConnectionPool.Transaction{Sockets.TCPSocket},HTTP.Streams.Stream{HTTP.Messages.Request,HTTP.ConnectionPool.Transaction{Sockets.TCPSocket}}})() at .\task.jl:356
Could you send us the file D:\Julia SoftWare\18S191 SUBMISSION\hw0 (1).jl
?
If possible, use Google Drive, Dropbox, Onedrive, etc, or send it via email: fons@mit.edu (It might be an encoding issue that would get lost if you copy paste it here.)
Could you send us the file
D:\Julia SoftWare\18S191 SUBMISSION\hw0 (1).jl
?If possible, use Google Drive, Dropbox, Onedrive, etc, or send it via email: fons@mit.edu (It might be an encoding issue that would get lost if you copy paste it here.)
the problem occurs when I download it from
"homework / homework0"
How do you download it, and how do you open it? Maybe screenshots would help?
Ohh we changed the path so the link is broken - can you try again with this link? Paste this into the main menu, like I do in the video:
https://github.com/mitmath/18S191/blob/master/homework/homework0/hw0.jl
Ah okay, it sounds like you saved the GitHub web page as a .jl
file, instead of the file itself.
There are two solutions:
-
paste the link https://github.com/mitmath/18S191/blob/master/homework/homework0/hw0.jl directly into the main menu, like I do in my video: https://www.youtube.com/watch?v=OOjKEgbt8AI
-
instead of right clicking hw0.jl from the GitHub folder (this will save the page), left click to view it inside github, you should end up here:
then right-click "Raw" in the top right, and save the linked page.
Yay! Have fun