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

[Feature Request] Add support for Google Colab #184

Closed
anthony-chaudhary opened this issue Jun 28, 2024 · 1 comment
Closed

[Feature Request] Add support for Google Colab #184

anthony-chaudhary opened this issue Jun 28, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@anthony-chaudhary
Copy link

anthony-chaudhary commented Jun 28, 2024

Where is the problem?

There was no colab example

What can we do better?

Created a colab example here https://colab.research.google.com/drive/1Y2pJFwOm-v94sC6ivutmeitnRJixffhS#scrollTo=qJMfX-w5aKAX

This adds the following blocks

!curl -s https://get.modular.com | sh -
!modular auth
!modular install max

Edit: I was playing with having it add to path but not quite there yet:

%%bash

# Set the MODULAR_HOME environment variable
echo 'export MODULAR_HOME="/root/.modular"' >> ~/.bashrc

# Get the MAX_PATH
MAX_PATH=$(modular config max.path)

# Add MAX_PATH to the PATH environment variable
echo 'export PATH="'$MAX_PATH'/bin:$PATH"' >> ~/.bashrc

# Source the bashrc to apply changes
source ~/.bashrc

# Print the updated PATH to verify
echo "Updated PATH: $PATH"

image

The goal is to be able to try this out by using colab and clicking run-all without any further thought.

The manual URL auth step is still required and not documented in the linked example

Anything else?

No response

@anthony-chaudhary anthony-chaudhary added the documentation Improvements or additions to documentation label Jun 28, 2024
@iamtimdavis iamtimdavis added enhancement New feature or request and removed documentation Improvements or additions to documentation labels Jul 14, 2024
@iamtimdavis iamtimdavis changed the title [Docs] Colab example is missing [Feature Request] Add support for Google Colab Jul 14, 2024
@iamtimdavis
Copy link
Contributor

Will close this in favor of #223

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants