class_docstr: Mixin for configurable classes that work with connection files
class_docstr_tok: ["Mixin","for","configurable","classes","that","work","with","connection","files"]
docstr: Make a ZeroMQ URL for a given channel.
docstr_tok: ["Make","a","ZeroMQ","URL","for","a","given","channel","."]
code: def _make_url(self, channel: str) -> str:
      """Make a ZeroMQ URL for a given channel."""
      transport = self.transport
      ip = self.ip
      port = getattr(self, "%s_port" % channel)
  
      if transport == "tcp":
          return "tcp://%s:%i" % (ip, port)
      else:
          return f"{transport}://{ip}-{port}"
  
imports: from __future__ import annotations
  import errno
  import glob
  import json
  import os
  import socket
  import stat
  import tempfile
  import warnings
  from getpass import getpass
  from typing import TYPE_CHECKING, Any, Dict, Union, cast
  import zmq
  from jupyter_core.paths import jupyter_data_dir, jupyter_runtime_dir, secure_write
  from traitlets import Bool, CaselessStrEnum, Instance, Integer, Type, Unicode, observe
  from traitlets.config import LoggingConfigurable, SingletonConfigurable
  from .localinterfaces import localhost
  from .utils import _filefind
label_desc: Use image node_id 17 for calling the ConnectionFileMixin obj's underlying member method code with example usage: obj._make_url(channel) and returns: unknown, transport, str, ip, str, port