Skip to content

Conversation

@maxandersen
Copy link
Contributor

@maxandersen maxandersen commented Oct 6, 2025

This splits /try into linking to "old" jdoodle and add option for jupyter notebook llaunch.

Also adds a /try/jupyter which lets you generate url for your own repo to edit/view via jupyter notebook

@maxandersen maxandersen changed the title Add try/jupyter page feat: Add try/jupyter page Oct 6, 2025
@github-actions
Copy link

github-actions bot commented Oct 6, 2025

🙈 The PR is closed and the preview is expired.

@maxandersen maxandersen requested a review from Copilot October 6, 2025 12:12
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR transforms the /try page into a comprehensive entry point for trying JBang, offering users a choice between a quick JDoodle experience and a full-featured Jupyter notebook environment with support for custom GitHub repositories and Gists.

  • Split the original /try page into two distinct options: JDoodle for quick testing and Jupyter for interactive development
  • Added a Jupyter notebook environment with custom URL generator for user repositories
  • Created comprehensive use cases documentation and getting started guide

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
content/try.md Refactored to display two try options with styled cards and links to specific environments
content/try/jdoodle.md Extracted original JDoodle functionality into dedicated page
content/try/jupyter.md New interactive page with form-based custom Jupyter link generator
content/use-cases.md New comprehensive documentation showing JBang usage across different skill levels
content/getting-started.md New guide providing quick installation and first steps with JBang

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines +275 to +286
if (repoUrl.includes('gist.github.com')) {
// Handle Gist URLs - use the original Gist URL directly
githubUrl = repoUrl;
branch = branchInput.value.trim() || 'main';
} else if (repoUrl.includes('github.com')) {
// Handle regular GitHub URLs
githubUrl = repoUrl.replace(/\.git$/, '');
branch = branchInput.value.trim() || 'main';
} else {
alert('Please enter a valid GitHub repository or Gist URL');
return;
}
Copy link

Copilot AI Oct 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The URL validation logic is overly simplistic. Consider using proper URL parsing with new URL() and checking the hostname property to handle edge cases like subdomains or different protocols more robustly.

Copilot uses AI. Check for mistakes.
cursor[bot]

This comment was marked as outdated.

maxandersen and others added 2 commits October 6, 2025 14:14
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@maxandersen maxandersen merged commit 846ce72 into jbangdev:main Oct 6, 2025
4 checks passed
@maxandersen maxandersen deleted the jupytertry branch October 6, 2025 12:16
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 this pull request may close these issues.

1 participant