GitLab example does not work properly
See original GitHub issueThe PR https://github.com/jupyterlite/jupyterlite/pull/203 added a nice code snippet to set up JupyterLite in GitLab.
I wanted to reproduce this with a minimal example: This GitLab repo produces this JupyterLite page without problems.
The only problem: The example notebook hello.ipynb
does not show up, the notebook explorer is empty.
@benabel do you have an idea where I have to copy the notebook? Copying it into the content/
folder does not work.
I’ve run this .gitlab-ci.yml
file:
image: python
pages:
stage: deploy
before_script:
- python -m pip install jupyterlite
- mkdir -p content/
- cp hello.ipynb content/
script:
- jupyter lite build --contents content --output-dir public
artifacts:
paths:
- public # mandatory, other folder won't work
only:
- main # the branch you want to publish
Also, thanks @benabel for the example at https://gitlab.com/benabel/jupyterlite-template , but unfortunately this gives currently the following error (full log here) when I run it in the Gitlab CI:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/doit/action.py", line 461, in execute
returned_value = self.py_callable(*self.args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/jupyterlite/addons/base.py", line 223, in merge_one_jupyterlite
out_path.write_text(json.dumps(config, **JSON_FMT), **UTF8)
File "/usr/local/lib/python3.10/pathlib.py", line 1154, in write_text
with self.open(mode='w', encoding=encoding, errors=errors, newline=newline) as f:
File "/usr/local/lib/python3.10/pathlib.py", line 1119, in open
return self._accessor.open(self, mode, buffering, encoding, errors,
FileNotFoundError: [Errno 2] No such file or directory: '/builds/crc1456/livedocs/jupyter-lite-compare_view-demo/public/github-demo/repl/jupyter-lite.json'
Issue Analytics
- State:
- Created a year ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Troubleshooting CI/CD - GitLab Docs
This message is shown if the Pipelines must succeed setting is enabled in the project and a pipeline has not yet run successfully....
Read more >Troubleshooting Omnibus GitLab installation issues
GitLab is unreachable in my browser. Try specifying an external_url in /etc/gitlab/gitlab.rb . Also check your firewall settings; port 80 (HTTP) ...
Read more >Troubleshooting Git - GitLab Docs
Here are some tips on troubleshooting and resolving issues with Git. Broken pipe errors on git push. 'Broken pipe' errors can occur when...
Read more >How to troubleshoot a GitLab pipeline failure
While a failed pipeline is annoying, it's important to remember that “tests can fail for different reasons: some are really bad or some...
Read more >Troubleshooting the GitLab chart
This is to ensure that the application does not malfunction to the schema not ... object storage with no issues if the trust...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sure, would you like to submit a PR? Thanks!
This file seems to be placed under
/repl/jupyter-lite.json
at the moment. Maybe try to move it to the parent folder?I will do that 😃
Thanks for the hint! Moving it to the parent folder solved the problem.