Skip to content

Conversation

@sourcery-ai
Copy link

@sourcery-ai sourcery-ai bot commented Dec 14, 2023

Branch main refactored by Sourcery.

If you're happy with these changes, merge this Pull Request using the Squash and merge strategy.

See our documentation here.

Run Sourcery locally

Reduce the feedback loop during development by using the Sourcery editor plugin:

Review changes via command line

To manually merge these changes, make sure you're on the main branch, then run:

git fetch origin sourcery/main
git merge --ff-only FETCH_HEAD
git reset HEAD^

Help us improve this pull request!

@sourcery-ai sourcery-ai bot requested a review from nat-a-cyborg December 14, 2023 15:27
Comment on lines -190 to +199
base_path = tmp_dir + '/visual-blocks-colab';
base_path = f'{tmp_dir}/visual-blocks-colab';
if os.path.exists(base_path):
shutil.rmtree(base_path)
os.mkdir(base_path)
log_file_path = base_path + '/log'
log_file_path = f'{base_path}/log'
open(log_file_path, 'w').close()

# Download the zip file that bundles the visual blocks web app.
bundle_target_path = os.path.join(base_path, 'visual_blocks.zip')
url = 'https://storage.googleapis.com/tfweb/rapsai-colab-bundles/visual_blocks_%s.zip' % _VISUAL_BLOCKS_BUNDLE_VERSION
url = f'https://storage.googleapis.com/tfweb/rapsai-colab-bundles/visual_blocks_{_VISUAL_BLOCKS_BUNDLE_VERSION}.zip'
Copy link
Author

Choose a reason for hiding this comment

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

Function Server refactored with the following changes:

This removes the following comments ( why? ):

# A thin wrapper class for exposing a "display" method.

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