Bump deps and misc small code improvements #4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue #, if available: N/A
Description of changes:
Just some minor version bumps and small code tweaks to help keep the sample up-to-date and readable:
aws-cdk-lib
to latest andcdk-ecr-deployment
to most recent working version not affected by the bug mentioned herepip install
commands in the notebook to one, for more reliable dependency resolution; and prefer%pip
magic (which should always resolve to the package manager within the current notebook kernel) rather than!pip
(which, in rare/weird environments, can possibly refer to something else)node_modules
for the benefit of anybody (like me) who prefers to install their AWS CDK CLI locally per-project rather than globally - in case of version mismatchesStack
objects, so IDE auto-complete works within these files.Testing done:
Deployed the stacks with updated CDK version and code in a new environment; opened the example notebook in a SageMaker AI Studio JupyterLab space (SM Distribution v2.2.1); ran through and verified tracing worked and was visible in the Langfuse environment.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.