Ausnahme gefangen: SSL certificate problem: certificate is not yet valid ๐Ÿ“Œ How TensorFlow docs uses Jupyter notebooks

๐Ÿ  Team IT Security News

TSecurity.de ist eine Online-Plattform, die sich auf die Bereitstellung von Informationen,alle 15 Minuten neuste Nachrichten, Bildungsressourcen und Dienstleistungen rund um das Thema IT-Sicherheit spezialisiert hat.
Ob es sich um aktuelle Nachrichten, Fachartikel, Blogbeitrรคge, Webinare, Tutorials, oder Tipps & Tricks handelt, TSecurity.de bietet seinen Nutzern einen umfassenden รœberblick รผber die wichtigsten Aspekte der IT-Sicherheit in einer sich stรคndig verรคndernden digitalen Welt.

16.12.2023 - TIP: Wer den Cookie Consent Banner akzeptiert, kann z.B. von Englisch nach Deutsch รผbersetzen, erst Englisch auswรคhlen dann wieder Deutsch!

Google Android Playstore Download Button fรผr Team IT Security



๐Ÿ“š How TensorFlow docs uses Jupyter notebooks


๐Ÿ’ก Newskategorie: AI Videos
๐Ÿ”— Quelle: blog.tensorflow.org

Posted by Billy Lamberta, TensorFlow Team

Jupyter notebooks are an important part of our TensorFlow documentation infrastructure. With the JupyterCon 2020 conference underway, the TensorFlow docs team would like to share some tools we use to manage a large collection of Jupyter notebooks as a first-class documentation format published on tensorflow.org.

As the TensorFlow ecosystem has grown, the TensorFlow documentation has grown into a substantial software project in its own right. We publish ~270 notebook guides and tutorials on tensorflow.orgโ€”all tested and available in GitHub. We also publish an additional ~400 translated notebooks for many languagesโ€”all tested like their English counterpart. The tooling we've developed to work with Jupyter notebooks helps us manage all this content.

Graph showing Notebooks published

When we published our first notebook on tensorflow.org over two years ago for the 2018 TensorFlow Developer Summit, the community response was fantastic. Users love that they can immediately jump from webpage documentation to an interactive computing experience in Google Colab. This setup allows you to runโ€”and experiment withโ€”our guides and tutorials right in the browser, without installing any software on your machine. This tensorflow.org integration with Colab made it much easier to get started and changed how we could teach TensorFlow using Jupyter notebooks. Other machine learning projects soon followed. Notebooks can be loaded directly from GitHub into Google Colab with just the URL:

https://colab.research.google.com/github/<repo>/blob/<branch>/<path>/notebook.ipynb

For compute-intensive tasks, Colab provides TPUs and GPUs at no cost. The TensorFlow documentation, such as this quickstart tutorial, has buttons that link to both its notebook source in GitHub and to load in Colab.

Better collaboration

Software documentation is a team effort, and notebooks are an expressive, education-focused format that allows engineers and writers to build up an interactive demonstration. Jupyter notebooks are JSON-formatted files that contain text cells and code cells, typically executed in sequential order from top-to-bottom. They are an excellent way to communicate programming ideas, and, with some discipline, a way to share reproducible results.

On the TensorFlow team, notebooks allow engineers, technical writers, and open source contributors to collaborate on the same document without the tension that exists between a separate code example and its published explanation. We write TensorFlow notebooks so that the documentation is the codeโ€”self-contained, easily shared, and tested.

Notebook translations with GitLocalize

Documentation needs to reach everyone around the worldโ€”something the TensorFlow team values. The TensorFlow community translation project has grown to 10 languages over the past two years. Translation sprints are a great way to engage with the community on open source documentation projects.

To make TensorFlow documentation accessible to even more developers, we worked with Alconost to add Jupyter notebook support to their GitLocalize translation tool. GitLocalize makes it easy to create translated notebooks and sync documentation updates from the source files. Open source contributors can submit pull requests and provide reviews using the TensorFlow GitLocalize project: gitlocalize.com/tensorflow/docs-l10n.

Jupyter notebook support in GitLocalize not only benefits TensorFlow, but is now available for all open source translation projects that use notebooks with GitHub.

TensorFlow docs notebook tools

Incorporating Jupyter notebooks into our docs infrastructure allows us to run and test all the published guides and tutorials to ensure everything on the site works for a new TensorFlow releaseโ€”using stable or nightly packages.

Benefits aside, there are challenges with managing Jupyter notebooks as source code. To make pull requests and reviews easier for contributors and project maintainers, we created the TensorFlow docs notebook tools to automate common fixes and communicate issues to contributors with continuous integration (CI) tests. You can install the tensorflow-docs pip package directly from the tensorflow/docs GitHub repository:

$ python3 -m pip install -U git+https://github.com/tensorflow/docs

nbfmt

While the Jupyter notebook format is straightforward, notebook authoring environments are often inconsistent with JSON formatting or embed their own metadata in the file. These unnecessary changes can cause diff churn in pull requests that make content reviews difficult. The solution is to use an auto-formatter that outputs consistent notebook JSON.

nbfmt is a notebook formatter with a preference for the TensorFlow docs notebook style. It formats the JSON and strips unneeded metadata except for some Colab-specific fields used for our integration. To run:

$ python3 -m tensorflow_docs.tools.nbfmt [options] notebook.ipynb

For TensorFlow docs projects, notebooks saved without output cells are executed and tested; notebooks saved with output cells are published as-is. We prefer to remove outputs to test our notebooks, but nbfmt can be used with either format.

The --test flag is available for continuous integration tests. Instead of updating the notebook, it returns an error if the notebook is not formatted. We use this in a CI test for one of our GitHub Actions workflows. And with some further bot integration, formatting patches can be automatically applied to the contributor's pull request.

nblint

The easiest way to scale reviews is to let the machine do it. Every project has recurring issues that pop up in reviews, and style questions are often best settled with a style guide (TensorFlow likes the Google developer docs style guide). For a large project, the more patterns you can catch and fix automatically, the more time you'll have available for other goals.

nblint is a notebook linting tool that checks documentation style rules. We use it to catch common style and structural issues in TensorFlow notebooks:

>$ python3 -m tensorflow_docs.tools.nblint [options] notebook.ipynb

Lints are assertions that test specific sections of the notebook. These lints are collected into style modules. nblint tests the google and tensorflow styles by default, and other style modules can be loaded at the command-line. Some styles require arguments that are also passed at the command-line, for example, setting a different repo when linting the TensorFlow translation notebooks:

$ python3 -m tensorflow_docs.tools.nblint \
--styles=tensorflow,tensorflow_docs_l10n \
--arg=repo:tensorflow/docs-1l0n \
notebook.ipynb

Lint tests can have an associated fix that makes it easy to update notebooks to pass style checks automatically. Use the --fix argument to apply lint fixes that overwrite the notebook, for example:

$ python3 -m tensorflow_docs.tools.nblint --fix \
--arg=repo:tensorflow/docs notebook.ipynb

Learn more

TensorFlow is a big fan of Project Jupyter and Jupyter notebooks. Along with Google Colab, notebooks changed how we teach TensorFlow and scale a large open source documentation project with tested guides, tutorials, and translations. We hope that sharing some of the tools will help other open source projects that want to use notebooks as documentation.

Read a TensorFlow tutorial and then run the notebook in Google Colab. To contribute to the TensorFlow documentation project, submit a pull request or a translation review to our GitLocalize project.

Special thanks to Mark Daoust, Wolff Dobson, Yash Katariya, the TensorFlow docs team, and all TensorFlow docs authors, reviewers, contributors, and supporters.

...



๐Ÿ“Œ How TensorFlow docs uses Jupyter notebooks


๐Ÿ“ˆ 58.23 Punkte

๐Ÿ“Œ 10 Things You Really Should Know About Jupyter Notebooks


๐Ÿ“ˆ 26.21 Punkte

๐Ÿ“Œ Jupyter Notebooks in Visual Studio Code | Visual Studio Toolbox


๐Ÿ“ˆ 26.21 Punkte

๐Ÿ“Œ Jupyter Notebooks in Visual Studio Code


๐Ÿ“ˆ 26.21 Punkte

๐Ÿ“Œ TWC9: Christina's Back, VS Code 1.42, .NET Interactive, PowerShell in Jupyter Notebooks and more


๐Ÿ“ˆ 26.21 Punkte

๐Ÿ“Œ Introducing Jupyter Notebooks | Even More Python for Beginners - Data Tools [2 of 31]


๐Ÿ“ˆ 26.21 Punkte

๐Ÿ“Œ Edit and run Jupyter notebooks without leaving Azure Machine Learning studio


๐Ÿ“ˆ 26.21 Punkte

๐Ÿ“Œ Extending the Exploration and Analysis of Windows RPC Methods Calling other Functions with Ghidra ?, Jupyter Notebooks ? and Graphframes ?!


๐Ÿ“ˆ 26.21 Punkte

๐Ÿ“Œ Built-in Jupyter notebooks in Azure Cosmos DB are now available


๐Ÿ“ˆ 26.21 Punkte

๐Ÿ“Œ Announcing Support for Native Editing of Jupyter Notebooks in VS Code


๐Ÿ“ˆ 26.21 Punkte

๐Ÿ“Œ Visual Studio Code bekommt eine direkte Anbindung an Jupyter Notebooks


๐Ÿ“ˆ 26.21 Punkte

๐Ÿ“Œ Jupyter Notebooks in Visual Studio Code


๐Ÿ“ˆ 26.21 Punkte

๐Ÿ“Œ How to Use .NET Interactive Jupyter Notebooks in Daily Work-Life | Data Exposed: MVP Edition


๐Ÿ“ˆ 26.21 Punkte

๐Ÿ“Œ Jupyter Notebooks in Visual Studio Code | AI Show


๐Ÿ“ˆ 26.21 Punkte

๐Ÿ“Œ How to use Jupyter Notebooks in Azure Data Studio | Azure Friday


๐Ÿ“ˆ 26.21 Punkte

๐Ÿ“Œ Getting Started with Jupyter Notebooks in VS Code | Visual Studio Toolbox


๐Ÿ“ˆ 26.21 Punkte

๐Ÿ“Œ The Launch Space: Updates to MSTICPy and Jupyter Notebooks in Azure Sentinel


๐Ÿ“ˆ 26.21 Punkte

๐Ÿ“Œ How to Get Started with Jupyter notebooks in Azure Quantum


๐Ÿ“ˆ 26.21 Punkte

๐Ÿ“Œ Critical Vulnerability in Microsoft Azure Cosmos DB Opens Up Jupyter Notebooks


๐Ÿ“ˆ 26.21 Punkte

๐Ÿ“Œ Convert Jupyter Notebooks into Functions


๐Ÿ“ˆ 26.21 Punkte

๐Ÿ“Œ Share your Jupyter Notebooks like a pro


๐Ÿ“ˆ 26.21 Punkte

๐Ÿ“Œ TWC9: Christina's Back, VS Code 1.42, .NET Interactive, PowerShell in Jupyter Notebooks and more | This Week On Channel 9


๐Ÿ“ˆ 26.21 Punkte

๐Ÿ“Œ Sourcecode-Editor: Visual Studio Code integriert Jupyter Notebooks


๐Ÿ“ˆ 26.21 Punkte

๐Ÿ“Œ heise+ | Datenvisualisierung mit Jupyter-Notebooks: Korrelationsanalysen mit Geodaten


๐Ÿ“ˆ 26.21 Punkte

๐Ÿ“Œ Getting Started with Jupyter Notebooks in VS Code


๐Ÿ“ˆ 26.21 Punkte

๐Ÿ“Œ How to Use .NET Interactive Jupyter Notebooks in Daily Work-Life | Data Exposed


๐Ÿ“ˆ 26.21 Punkte

๐Ÿ“Œ Microsoft Mitigates Vulnerability in Jupyter Notebooks for Azure Cosmos DB


๐Ÿ“ˆ 26.21 Punkte

๐Ÿ“Œ Microsoft Mitigates Vulnerability in Jupyter Notebooks for Azure Cosmos DB


๐Ÿ“ˆ 26.21 Punkte

๐Ÿ“Œ Microsoft Mitigates Vulnerability in Jupyter Notebooks for Azure Cosmos DB


๐Ÿ“ˆ 26.21 Punkte

๐Ÿ“Œ What are Jupyter Notebooks?


๐Ÿ“ˆ 26.21 Punkte

๐Ÿ“Œ Build a Docker Image for Jupyter Notebooks and run on Cloudโ€™s VertexAI


๐Ÿ“ˆ 26.21 Punkte











matomo