question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GitLab example does not work properly

See original GitHub issue

The 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:closed
  • Created a year ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jtpiocommented, Sep 27, 2022

I think this might be a nice addition to the hint at:

Sure, would you like to submit a PR? Thanks!

My current jupyter-lite.json file looks like this, and it does not disable the tour:

This file seems to be placed under /repl/jupyter-lite.json at the moment. Maybe try to move it to the parent folder?

0reactions
kolibril13commented, Sep 27, 2022

I will do that 😃

Thanks for the hint! Moving it to the parent folder solved the problem.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found