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

Unable to weave tutorials #536

Closed
AlexanderSimWS opened this issue Oct 7, 2022 · 4 comments · Fixed by #537
Closed

Unable to weave tutorials #536

AlexanderSimWS opened this issue Oct 7, 2022 · 4 comments · Fixed by #537

Comments

@AlexanderSimWS
Copy link

I'm able to add the package but I get this problem when I run "SciMLTutorials.open_notebooks()":

ERROR: IOError: readdir("DiffEqUncertainty"): no such file or directory (ENOENT)
Stacktrace:
[1] uv_error
@ ./libuv.jl:97 [inlined]
[2] readdir(dir::String; join::Bool, sort::Bool)
@ Base.Filesystem ./file.jl:865
[3] readdir
@ ./file.jl:858 [inlined]
[4] weave_folder(folder::String, build_list::Tuple{Symbol})
@ SciMLTutorials ~/.julia/packages/SciMLTutorials/97ktD/src/SciMLTutorials.jl:69
[5] weave_all(build_list::Tuple{Symbol})
@ SciMLTutorials ~/.julia/packages/SciMLTutorials/97ktD/src/SciMLTutorials.jl:64
[6] open_notebooks()
@ SciMLTutorials ~/.julia/packages/SciMLTutorials/97ktD/src/SciMLTutorials.jl:131
[7] top-level scope
@ REPL[3]:1

How do I fix this?

@fernikalo
Copy link

fernikalo commented Oct 10, 2022

Hi,
I have same problems even trying to open the Jupiter notebooks using the following commands:

using Pkg
pkg"add https://github.com/SciML/SciMLTutorials.jl"
using SciMLTutorials
SciMLTutorials.open_notebooks()

with following error message:

julia> SciMLTutorials.open_notebooks()
ERROR: IOError: readdir("DiffEqUncertainty"): no such file or directory (ENOENT)
Stacktrace:
[1] uv_error
@ ./libuv.jl:97 [inlined]
[2] readdir(dir::String; join::Bool, sort::Bool)
@ Base.Filesystem ./file.jl:865
[3] readdir
@ ./file.jl:858 [inlined]
[4] weave_folder(folder::String, build_list::Tuple{Symbol})
@ SciMLTutorials ~/.julia/packages/SciMLTutorials/97ktD/src/SciMLTutorials.jl:69
[5] weave_all(build_list::Tuple{Symbol})
@ SciMLTutorials ~/.julia/packages/SciMLTutorials/97ktD/src/SciMLTutorials.jl:64
[6] open_notebooks()
@ SciMLTutorials ~/.julia/packages/SciMLTutorials/97ktD/src/SciMLTutorials.jl:131
[7] top-level scope
@ REPL[4]:1

@doswellf
Copy link

doswellf commented Oct 17, 2022

Hi All,

To start with I cloned the SciMLTutorials.jl repository with:
git clone --recursive --depth=1 https://github.com/SciML/SciMLTutorials.jl

Then changed directory to the top level of the SciMLTutorials.jl directory and followed the instructions at the top of the web page https://tutorials.sciml.ai/stable/

At first I used the instructions from the top of the tutorials web page to get started. Using either of Julia 1.6.3 or Julia 1.8.x did not work. The first version is too old, the second version is too new. Using Julia version 1.7.3 was the silver bullet.

My experience is that the success of your weaves depends on the correct Julia version. When I use Julia 1.7.3 and follow the instructions on

https://tutorials.sciml.ai/stable/

then things work fine. I can weave markdown, notebooks and pdf files too.

To get julia 1.7.3 Install juliaup and then install 1.7.3 using juliaup.

Then the instructions for Contributing at the bottom also work if I do not enter the second line
cd(joinpath(dirname(pathof(SciMLTutorials)), ".."))

The instructions for contributing may work under 1.7.3 with the cd(joinpath...) statement, but I haven't re-tried that yet.

You can weave all the other examples too. To weave pdf files you must install xetex/xelatex, the replacement for pdflatex. To weave notebooks of all files in a folder:

SciMLTutorials.weave_folder("tutorials/advanced", [:pdf])
or
SciMLTutorials.weave_folder("tutorials/advanced", [:notebok])
or
SciMLTutorials.weave_folder("tutorials/advanced", [:markdown])

To weave one file in a folder:

SciMLTutorials.weave_file("tutorials/advanced", "01-beeler_reuter.jmd",[:pdf])
or
SciMLTutorials.weave_file("tutorials/advanced", "01-beeler_reuter.jmd",[:notebook])
or
SciMLTutorials.weave_file("tutorials/advanced", "01-beeler_reuter.jmd",[:markdown])

To start the notebooks you can get out of Julia, change to the notebooks/DiffEqUncertainty directory. Copy any *.ipynb files to SciMLTutorials.jl/tutorials/DiffEqUncertainty.

Then change directory to SciMLTutorials.jl/tutorials/DiffEqUncertainty.

Assuming you've installed IJulia you can use jupyter-notebook or jupyter-lab from the tutorials/DiffEqUncertainty directory.

jupyter-lab for local access only

or

jupyter-lab --ip=<your ip address> --port=7777

if you want access to your jupyter session on other computers on your network.

@ChrisRackauckas
Copy link
Member

I fixed it up to be a lot more automated. See the new directions in https://github.com/SciML/SciMLTutorials.jl#interactive-notebooks . They should be added to the doc websites shortly.

@doswellf
Copy link

doswellf commented Oct 17, 2022 via email

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

Successfully merging a pull request may close this issue.

4 participants