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

Better support for Google Colab #848

Open
CuloArdido opened this issue Jun 6, 2023 · 0 comments
Open

Better support for Google Colab #848

CuloArdido opened this issue Jun 6, 2023 · 0 comments

Comments

@CuloArdido
Copy link

When installing pywb in Google Colab following this procedure¹ and after starting the server², the pages I try to access within a collection appear blank because the scripts and CSS links point by default to http://colab.research.google.com/ instead of where they should be³.


  1. Before installing pywb you should run this command to avoid a dependency conflict:
    !pip uninstall flask nbconvert -y
    

    Then the procedure is the same as in the documentation but prepending a ! before each command.

  2. To start the server, the following must be executed:
    from google.colab.output import eval_js
    # Show the link through which the user can access to the server
    print(eval_js("google.colab.kernel.proxyPort(8080)"))
    !wayback -p 8080

    The -p parameter would normally not be needed unless the user wants to use a port other than 8080.

  3. This is usually something like https://someid-port-colab.googleusercontent.com
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

1 participant